[PATCH 07/11] smb: client: set missing retry flag in smb2_writev_callback()
David Howells
dhowells at redhat.com
Mon Jun 23 05:48:27 PDT 2025
From: Paulo Alcantara <pc at manguebit.org>
Set NETFS_SREQ_NEED_RETRY flag to tell netfslib that the subreq needs
to be retried.
Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Signed-off-by: Paulo Alcantara (Red Hat) <pc at manguebit.org>
Signed-off-by: David Howells <dhowells at redhat.com>
Cc: Steve French <sfrench at samba.org>
Cc: linux-cifs at vger.kernel.org
Cc: netfs at lists.linux.dev
---
fs/smb/client/smb2pdu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c
index a717be1626a3..084ee66e73fd 100644
--- a/fs/smb/client/smb2pdu.c
+++ b/fs/smb/client/smb2pdu.c
@@ -4862,6 +4862,7 @@ smb2_writev_callback(struct mid_q_entry *mid)
break;
case MID_REQUEST_SUBMITTED:
case MID_RETRY_NEEDED:
+ __set_bit(NETFS_SREQ_NEED_RETRY, &wdata->subreq.flags);
result = -EAGAIN;
break;
case MID_RESPONSE_MALFORMED:
More information about the linux-afs
mailing list