From: Li Wang <liwang@kylinos.cn>
To: Stefan Hajnoczi <stefanha@redhat.com>,
German Maglione <gmaglione@redhat.com>,
Vivek Goyal <vgoyal@redhat.com>,
Miklos Szeredi <miklos@szeredi.hu>
Cc: "Eugenio Pérez" <eperezma@redhat.com>,
virtualization@lists.linux.dev, linux-fsdevel@vger.kernel.org,
"Li Wang" <liwang@kylinos.cn>
Subject: [PATCH 3/3] virtiofs: Distinguish between 1 and negative return values in send_forget_request()
Date: Mon, 23 Mar 2026 17:43:17 +0800 [thread overview]
Message-ID: <20260323094317.46302-3-liwang@kylinos.cn> (raw)
In-Reply-To: <20260323094317.46302-1-liwang@kylinos.cn>
If virtqueue_add_outbuf() returns negative error codes other than
-ENOSPC and -ENOMEM, allow subsequent requests to proceed,
aligning with the comments in send_forget_request().
Signed-off-by: Li Wang <liwang@kylinos.cn>
---
fs/fuse/virtio_fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c
index bf043e698e0d..7b283db76f3f 100644
--- a/fs/fuse/virtio_fs.c
+++ b/fs/fuse/virtio_fs.c
@@ -652,6 +652,7 @@ static int send_forget_request(struct virtio_fs_vq *fsvq,
kfree(forget);
if (in_flight)
dec_in_flight_req(fsvq);
+ ret = 0;
}
goto out;
}
--
2.34.1
prev parent reply other threads:[~2026-03-23 9:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 9:43 [PATCH 1/3] virtiofs: Only parse the out header if the request expects a reply in virtio_fs_request_complete() Li Wang
2026-03-23 9:43 ` [PATCH 2/3] virtiofs: Allow ENOMEM requests to wait and retry later in send_forget_request() Li Wang
2026-03-23 9:43 ` Li Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260323094317.46302-3-liwang@kylinos.cn \
--to=liwang@kylinos.cn \
--cc=eperezma@redhat.com \
--cc=gmaglione@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=stefanha@redhat.com \
--cc=vgoyal@redhat.com \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox