]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Mon, 22 Jun 2020 20:23:33 +0000 (17:23 -0300)
commit2a6c5a1ef7367f68323301f3b6c745ce04811e4e
tree8cbddd4f43b56fc9ac6ceb5ee7056cc7040b27b9
parentedfdae78ebb323f5c8d3792ba097facd71e38ffd
Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"

BugLink: https://bugs.launchpad.net/bugs/1881927
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
block/blk-core.c