diff options
author | Yufen Yu <yuyufen@huawei.com> | 2020-10-08 23:26:29 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-09 12:34:06 -0600 |
commit | 75e6c00fc75c53577bfc4831d909162c56e799ce (patch) | |
tree | 8d7c38d1f9f20263e25bba2ce923fe8f675b4a2d /block/blk-iocost.c | |
parent | 6251b754f5b29d44d088cc73f508d15ddfb8d978 (diff) | |
download | lwn-75e6c00fc75c53577bfc4831d909162c56e799ce.tar.gz lwn-75e6c00fc75c53577bfc4831d909162c56e799ce.zip |
block: use helper function to test queue register
We have defined common interface blk_queue_registered() to
test QUEUE_FLAG_REGISTERED. Just use it.
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iocost.c')
-rw-r--r-- | block/blk-iocost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-iocost.c b/block/blk-iocost.c index 951ad4bb27f5..bbe86d1199dc 100644 --- a/block/blk-iocost.c +++ b/block/blk-iocost.c @@ -669,7 +669,7 @@ static struct ioc *q_to_ioc(struct request_queue *q) static const char *q_name(struct request_queue *q) { - if (test_bit(QUEUE_FLAG_REGISTERED, &q->queue_flags)) + if (blk_queue_registered(q)) return kobject_name(q->kobj.parent); else return "<unknown>"; |