Skip to content
Commit 5e27891e authored by Jens Axboe's avatar Jens Axboe
Browse files

block: remove bogus check for queue_lock assignment



We just allocated the queue and haven't even set it up yet,
hence we know that checking if ->mq_ops is NULL is always
going to be true.

In fact we do need to assign a lock to ->queue_lock always,
as we need it for the queue flags modifications.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e50b1e32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment