block/io_uring: resubmit when result is -EAGAIN
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 29 Jul 2021 09:10:29 +0000 (11:10 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 29 Jul 2021 16:14:55 +0000 (17:14 +0100)
commit54caccb3657e3960d8f5d57ab8e867028325d131
treeee24f233b3afb6d9d5bb2afd304f49c6196defb7
parent0ef2801423be33d80b52b14b6b55b3713a325dba
block/io_uring: resubmit when result is -EAGAIN

Linux SCSI can throw spurious -EAGAIN in some corner cases in its
completion path, which will end up being the result in the completed
io_uring request.

Resubmitting such requests should allow block jobs to complete, even
if such spurious errors are encountered.

Co-authored-by: Stefan Hajnoczi <stefanha@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Message-id: 20210729091029.65369-1-f.ebner@proxmox.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io_uring.c