]> 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)
commitc02b173d77cbdb519531727f4a8abc2db8ccf3a5
tree8d7762fca759cd2319014e6d12ebef67b568ea2e
parentc59a4d79ec7a49f2d84a21e9c0c69973dc46f8c6
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