Block patches
The following changes since commit 3521ade3510eb5cefb2e27a101667f25dad89935:
Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-07-29' into staging (2021-07-29 13:17:20 +0100)
are available in the Git repository at:
https://gitlab.com/stefanha/qemu.git tags/block-pull-request
for you to fetch changes up to cc8eecd7f105a1dff5876adeb238a14696061a4a:
MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver (2021-07-29 17:17:34 +0100)
----------------------------------------------------------------
Pull request
The main fix here is for io_uring. Spurious -EAGAIN errors can happen and the request needs to be resubmitted.
The MAINTAINERS changes carry no risk and we might as well include them in QEMU 6.1.
----------------------------------------------------------------
Fabian Ebner (1):
block/io_uring: resubmit when result is -EAGAIN
Philippe Mathieu-Daudé (1):
MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver
Stefano Garzarella (1):
MAINTAINERS: add Stefano Garzarella as io_uring reviewer
MAINTAINERS | 2 ++ block/io_uring.c | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1
[PULL for-6.1 2/3] block/io_uring: resubmit when result is -EAGAIN
From: Fabian Ebner <[email protected]>
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.
Message-id: [email protected]
--- block/io_uring.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
block/io_uring.c +15 -1
@@ -165,7 +165,21 @@ static void luring_process_completions(LuringState *s) total_bytes = ret + luringcb->total_read;if (ret <0 ) { -if (ret == -EINTR ) { +/* +* Only writev/readv/fsync requests on regular files or host block +* devices are submitted. Therefore -EAGAIN is not expected but it's +* known to happen sometimes with Linux SCSI. Submit again and hope +* the request completes successfully. +* +* For more information, see: +* https://lore.kernel.org/io-uring/[email protected]/T/#u +* +* If the code is changed to submit other types of requests in the +* future, then this workaround may need to be extended to deal with +* genuine -EAGAIN results that should not be resubmitted +* immediately. +*/ +if (ret == -EINTR || ret == -EAGAIN ) {luring_resubmit (s, luringcb);continue ; }
Signature · 1 line
2.31.1
[PULL for-6.1 1/3] MAINTAINERS: add Stefano Garzarella as io_uring reviewer
In reply to Stefan HajnocziFrom: Stefano Garzarella <[email protected]>
I've been working with io_uring for a while so I'd like to help with reviews.
Message-Id: <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -3257,6 +3257,7 @@ Linux io_uring M: Aarushi Mehta <[email protected]> M: Julia Suvorova <[email protected]> M: Stefan Hajnoczi <[email protected]> +R: Stefano Garzarella <[email protected]> L: [email protected] S: Maintained F: block/io_uring.c
Signature · 1 line
2.31.1
[PULL for-6.1 3/3] MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver
In reply to Stefan HajnocziFrom: Philippe Mathieu-Daudé <[email protected]>
I'm interested in following the activity around the NVMe bdrv.
Message-id: [email protected]
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -3178,6 +3178,7 @@ F: block/null.c NVMe Block Driver M: Stefan Hajnoczi <[email protected]> R: Fam Zheng <[email protected]> +R: Philippe Mathieu-Daudé <[email protected]> L: [email protected] S: Supported F: block/nvme*
Signature · 1 line
2.31.1
Peter Maydell
AppliedQuoted 13 lines · Stefan Hajnoczi
The following changes since commit
3521ade3510eb5cefb2e27a101667f25dad89935:Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-07-29' into staging (2021-07-29 13:17:20 +0100)
are available in the Git repository at:
https://gitlab.com/stefanha/qemu.git tags/block-pull-request
for you to fetch changes up to
cc8eecd7f105a1dff5876adeb238a14696061a4a:
MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver (2021-07-29 17:17:34 +0100)
Quoted 8 lines
----------------------------------------------------------------
Pull requestThe main fix here is for
io_uring. Spurious-EAGAINerrors can happen and the request needs to be resubmitted.The
MAINTAINERSchanges carry no risk and we might as well include them in QEMU 6.1.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.1
for any user-visible changes.
-- PMM