]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove bogus check for queue_lock assignment
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Oct 2018 15:24:57 +0000 (09:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 14 Oct 2018 18:49:40 +0000 (12:49 -0600)
commit4e811ed46dbb635f57d59d84360d4b3f395a041d
tree8d7762fca759cd2319014e6d12ebef67b568ea2e
parentc9e8331b718c1953c248475b21ef020a143460c1
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: Jens Axboe <axboe@kernel.dk>
block/blk-core.c