]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a queue_has_disk helper
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 14:17:42 +0000 (16:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Aug 2021 17:52:28 +0000 (11:52 -0600)
commitf4d592677555b56a04c3bd1108b6c01bc0139ec1
treecd166a1e0733ad08e919c27f9cce0ceb21c643ad
parent4d250df6770308b6cba3f0345201c6f6fc345253
block: add a queue_has_disk helper

Add a helper to check if a gendisk is associated with a request_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20210809141744.1203023-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h