diff options
author | Christoph Hellwig <hch@lst.de> | 2021-02-01 16:17:20 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-01 19:35:20 +0300 |
commit | d7a4783883d350e33308bf7c9ef0fe4e38f9c8e2 (patch) | |
tree | e4b2120d2e9bfd876081495d7611d51690657ae5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f7bf5e24e0b40fdb2321d9cf2b41043425fb4f9d (diff) | |
download | linux-d7a4783883d350e33308bf7c9ef0fe4e38f9c8e2.tar.xz |
md: check for NULL ->meta_bdev before calling bdev_read_only
->meta_bdev is optional and not set for most arrays. Add a
rdev_read_only helper that calls bdev_read_only for both devices
in a safe way.
Fixes: 6f0d9689b670 ("block: remove the NULL bdev check in bdev_read_only")
Reported-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Christoph Hellwig <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