Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"
authorJens Axboe <axboe@kernel.dk>
Thu, 28 May 2020 19:19:29 +0000 (13:19 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:21:27 +0000 (08:21 +0200)
commitbba91cdba612fbce4f8575c5d94d2b146fb83ea3
tree6789021fa980cb42ac38408f4c3614dbde882767
parent31f0b78bb4781a75f73aa462e4731a9b0eb102a6
Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"

[ Upstream commit b0beb28097fa04177b3769f4bb7a0d0d9c4ae76e ]

This reverts commit c58c1f83436b501d45d4050fd1296d71a9760bcb.

io_uring does do the right thing for this case, and we're still returning
-EAGAIN to userspace for the cases we don't support. Revert this change
to avoid doing endless spins of resubmits.

Cc: stable@vger.kernel.org # v5.6
Reported-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-core.c