]> git.baikalelectronics.ru Git - kernel.git/commit
block: Remove redundant WARN_ON()
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Fri, 4 May 2018 14:32:46 +0000 (16:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 May 2018 21:26:36 +0000 (15:26 -0600)
commit1581c82f7b030b0e262e2f58cf48cc7b58ab685c
treef6d288dd77029968c2af44e40825f8a86e879ae1
parent8f04484fc83c679c61ee0f5e9ec4813fa4420065
block: Remove redundant WARN_ON()

Commit fc27e4d9bc39 ("block: Check locking assumptions at runtime") added a
lockdep_assert_held(q->queue_lock) which makes the WARN_ON() redundant
because lockdep will detect and warn about context violations.

The unconditional WARN_ON() does not provide real additional value, so it
can be removed.

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c