block: add helper for checking if queue is registered
authorMing Lei <ming.lei@redhat.com>
Tue, 27 Aug 2019 11:01:47 +0000 (19:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Aug 2019 16:40:20 +0000 (10:40 -0600)
commit58c898ba370e68d39470cd0d932b524682c1f9be
tree44a7e85517859b3a25d63b5a8f5b00a2995fd3e5
parentc6ba933358f0d7a6a042b894dba20cc70396a6d3
block: add helper for checking if queue is registered

There are 4 users which check if queue is registered, so add one helper
to check it.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Mike Snitzer <snitzer@redhat.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
block/blk-wbt.c
block/elevator.c
include/linux/blkdev.h