]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove inaccurate requeue check
authorJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:21:40 +0000 (08:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:21:40 +0000 (08:21 -0600)
commit75a707a1b22dd37fa7f9011a2e68a881d8f7e73a
tree3d413b535ec8309ccda6c3726d669cc02246c9be
parentee8d5caf482fcba6839dbf6257f7aeb76411a6a3
block: remove inaccurate requeue check

This check is meant to catch cases where a requeue is attempted on a
request that is still inserted. It's never really been useful to catch any
misuse, and now it's actively wrong. Outside of that, this should not be a
BUG_ON() to begin with.

Remove the check as it's now causing active harm, as requeue off the plug
path will trigger it even though the request state is just fine.

Reported-by: Yi Zhang <yi.zhang@redhat.com>
Link: https://lore.kernel.org/linux-block/CAHj4cs80zAUc2grnCZ015-2Rvd-=gXRfB_dFKy=RTm+wRo09HQ@mail.gmail.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c