diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-15 12:45:12 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-17 05:44:24 +0300 |
commit | 6dab421bfe06a59bf8f212a72e34673e8acf2018 (patch) | |
tree | 7ef99f93b46f04c14d73a0e224095133d9b08af6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e2efa0796607efe60c708271be483c3a2b0128de (diff) | |
download | linux-6dab421bfe06a59bf8f212a72e34673e8acf2018.tar.xz |
memstick/mspro_block: fix handling of read-only devices
Use set_disk_ro to propagate the read-only state to the block layer
instead of checking for it in ->open and leaking a reference in case
of a read-only device.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220215094514.3828912-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions