1 | The following changes since commit 3521ade3510eb5cefb2e27a101667f25dad89935: | 1 | The following changes since commit 2480f3bbd03814b0651a1f74959f5c6631ee5819: |
---|---|---|---|
2 | 2 | ||
3 | Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-07-29' into staging (2021-07-29 13:17:20 +0100) | 3 | Merge tag 'linux-user-for-7.1-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging (2022-08-03 08:32:44 -0700) |
4 | 4 | ||
5 | are available in the Git repository at: | 5 | are available in the Git repository at: |
6 | 6 | ||
7 | https://gitlab.com/stefanha/qemu.git tags/block-pull-request | 7 | https://gitlab.com/stefanha/qemu.git tags/block-pull-request |
8 | 8 | ||
9 | for you to fetch changes up to cc8eecd7f105a1dff5876adeb238a14696061a4a: | 9 | for you to fetch changes up to 7b0ca313647532a2c7007379ff800c9a2415c95d: |
10 | 10 | ||
11 | MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver (2021-07-29 17:17:34 +0100) | 11 | virtiofsd: Fix format strings (2022-08-04 14:44:25 -0400) |
12 | 12 | ||
13 | ---------------------------------------------------------------- | 13 | ---------------------------------------------------------------- |
14 | Pull request | 14 | Pull request |
15 | 15 | ||
16 | The main fix here is for io_uring. Spurious -EAGAIN errors can happen and the | 16 | - Format string portability fix in virtiofsd |
17 | request needs to be resubmitted. | ||
18 | |||
19 | The MAINTAINERS changes carry no risk and we might as well include them in QEMU | ||
20 | 6.1. | ||
21 | 17 | ||
22 | ---------------------------------------------------------------- | 18 | ---------------------------------------------------------------- |
23 | 19 | ||
24 | Fabian Ebner (1): | 20 | Stefan Weil (1): |
25 | block/io_uring: resubmit when result is -EAGAIN | 21 | virtiofsd: Fix format strings |
26 | 22 | ||
27 | Philippe Mathieu-Daudé (1): | 23 | tools/virtiofsd/fuse_lowlevel.c | 4 ++-- |
28 | MAINTAINERS: Added myself as a reviewer for the NVMe Block Driver | 24 | 1 file changed, 2 insertions(+), 2 deletions(-) |
29 | |||
30 | Stefano Garzarella (1): | ||
31 | MAINTAINERS: add Stefano Garzarella as io_uring reviewer | ||
32 | |||
33 | MAINTAINERS | 2 ++ | ||
34 | block/io_uring.c | 16 +++++++++++++++- | ||
35 | 2 files changed, 17 insertions(+), 1 deletion(-) | ||
36 | 25 | ||
37 | -- | 26 | -- |
38 | 2.31.1 | 27 | 2.37.1 |
39 | diff view generated by jsdifflib |
Deleted patch | |||
---|---|---|---|
1 | From: Stefano Garzarella <sgarzare@redhat.com> | ||
2 | 1 | ||
3 | I've been working with io_uring for a while so I'd like to help | ||
4 | with reviews. | ||
5 | |||
6 | Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> | ||
7 | Message-Id: <20210728131515.131045-1-sgarzare@redhat.com> | ||
8 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
9 | --- | ||
10 | MAINTAINERS | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/MAINTAINERS b/MAINTAINERS | ||
14 | index XXXXXXX..XXXXXXX 100644 | ||
15 | --- a/MAINTAINERS | ||
16 | +++ b/MAINTAINERS | ||
17 | @@ -XXX,XX +XXX,XX @@ Linux io_uring | ||
18 | M: Aarushi Mehta <mehta.aaru20@gmail.com> | ||
19 | M: Julia Suvorova <jusual@redhat.com> | ||
20 | M: Stefan Hajnoczi <stefanha@redhat.com> | ||
21 | +R: Stefano Garzarella <sgarzare@redhat.com> | ||
22 | L: qemu-block@nongnu.org | ||
23 | S: Maintained | ||
24 | F: block/io_uring.c | ||
25 | -- | ||
26 | 2.31.1 | ||
27 | diff view generated by jsdifflib |
Deleted patch | |||
---|---|---|---|
1 | From: Fabian Ebner <f.ebner@proxmox.com> | ||
2 | 1 | ||
3 | Linux SCSI can throw spurious -EAGAIN in some corner cases in its | ||
4 | completion path, which will end up being the result in the completed | ||
5 | io_uring request. | ||
6 | |||
7 | Resubmitting such requests should allow block jobs to complete, even | ||
8 | if such spurious errors are encountered. | ||
9 | |||
10 | Co-authored-by: Stefan Hajnoczi <stefanha@gmail.com> | ||
11 | Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> | ||
12 | Signed-off-by: Fabian Ebner <f.ebner@proxmox.com> | ||
13 | Message-id: 20210729091029.65369-1-f.ebner@proxmox.com | ||
14 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
15 | --- | ||
16 | block/io_uring.c | 16 +++++++++++++++- | ||
17 | 1 file changed, 15 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/block/io_uring.c b/block/io_uring.c | ||
20 | index XXXXXXX..XXXXXXX 100644 | ||
21 | --- a/block/io_uring.c | ||
22 | +++ b/block/io_uring.c | ||
23 | @@ -XXX,XX +XXX,XX @@ static void luring_process_completions(LuringState *s) | ||
24 | total_bytes = ret + luringcb->total_read; | ||
25 | |||
26 | if (ret < 0) { | ||
27 | - if (ret == -EINTR) { | ||
28 | + /* | ||
29 | + * Only writev/readv/fsync requests on regular files or host block | ||
30 | + * devices are submitted. Therefore -EAGAIN is not expected but it's | ||
31 | + * known to happen sometimes with Linux SCSI. Submit again and hope | ||
32 | + * the request completes successfully. | ||
33 | + * | ||
34 | + * For more information, see: | ||
35 | + * https://lore.kernel.org/io-uring/20210727165811.284510-3-axboe@kernel.dk/T/#u | ||
36 | + * | ||
37 | + * If the code is changed to submit other types of requests in the | ||
38 | + * future, then this workaround may need to be extended to deal with | ||
39 | + * genuine -EAGAIN results that should not be resubmitted | ||
40 | + * immediately. | ||
41 | + */ | ||
42 | + if (ret == -EINTR || ret == -EAGAIN) { | ||
43 | luring_resubmit(s, luringcb); | ||
44 | continue; | ||
45 | } | ||
46 | -- | ||
47 | 2.31.1 | ||
48 | diff view generated by jsdifflib |
1 | From: Philippe Mathieu-Daudé <philmd@redhat.com> | 1 | From: Stefan Weil <sw@weilnetz.de> |
---|---|---|---|
2 | 2 | ||
3 | I'm interested in following the activity around the NVMe bdrv. | 3 | Signed-off-by: Stefan Weil <sw@weilnetz.de> |
4 | 4 | Message-Id: <20220804074833.892604-1-sw@weilnetz.de> | |
5 | Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> | ||
6 | Message-id: 20210728183340.2018313-1-philmd@redhat.com | ||
7 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 5 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
8 | --- | 6 | --- |
9 | MAINTAINERS | 1 + | 7 | tools/virtiofsd/fuse_lowlevel.c | 4 ++-- |
10 | 1 file changed, 1 insertion(+) | 8 | 1 file changed, 2 insertions(+), 2 deletions(-) |
11 | 9 | ||
12 | diff --git a/MAINTAINERS b/MAINTAINERS | 10 | diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c |
13 | index XXXXXXX..XXXXXXX 100644 | 11 | index XXXXXXX..XXXXXXX 100644 |
14 | --- a/MAINTAINERS | 12 | --- a/tools/virtiofsd/fuse_lowlevel.c |
15 | +++ b/MAINTAINERS | 13 | +++ b/tools/virtiofsd/fuse_lowlevel.c |
16 | @@ -XXX,XX +XXX,XX @@ F: block/null.c | 14 | @@ -XXX,XX +XXX,XX @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, |
17 | NVMe Block Driver | 15 | |
18 | M: Stefan Hajnoczi <stefanha@redhat.com> | 16 | fuse_log(FUSE_LOG_DEBUG, "INIT: %u.%u\n", arg->major, arg->minor); |
19 | R: Fam Zheng <fam@euphon.net> | 17 | if (arg->major == 7 && arg->minor >= 6) { |
20 | +R: Philippe Mathieu-Daudé <philmd@redhat.com> | 18 | - fuse_log(FUSE_LOG_DEBUG, "flags=0x%016llx\n", flags); |
21 | L: qemu-block@nongnu.org | 19 | + fuse_log(FUSE_LOG_DEBUG, "flags=0x%016" PRIx64 "\n", flags); |
22 | S: Supported | 20 | fuse_log(FUSE_LOG_DEBUG, "max_readahead=0x%08x\n", arg->max_readahead); |
23 | F: block/nvme* | 21 | } |
22 | se->conn.proto_major = arg->major; | ||
23 | @@ -XXX,XX +XXX,XX @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, | ||
24 | if (se->conn.want & (~se->conn.capable)) { | ||
25 | fuse_log(FUSE_LOG_ERR, | ||
26 | "fuse: error: filesystem requested capabilities " | ||
27 | - "0x%llx that are not supported by kernel, aborting.\n", | ||
28 | + "0x%" PRIx64 " that are not supported by kernel, aborting.\n", | ||
29 | se->conn.want & (~se->conn.capable)); | ||
30 | fuse_reply_err(req, EPROTO); | ||
31 | se->error = -EPROTO; | ||
24 | -- | 32 | -- |
25 | 2.31.1 | 33 | 2.37.1 |
26 | diff view generated by jsdifflib |