[PATCH v2 07/16] smb: client: set missing retry flag in cifs_readv_callback()
David Howells
dhowells at redhat.com
Wed Jun 25 09:42:02 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/cifssmb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/smb/client/cifssmb.c b/fs/smb/client/cifssmb.c
index 7216fcec79e8..f9ccae5de5b8 100644
--- a/fs/smb/client/cifssmb.c
+++ b/fs/smb/client/cifssmb.c
@@ -1335,6 +1335,7 @@ cifs_readv_callback(struct mid_q_entry *mid)
break;
case MID_REQUEST_SUBMITTED:
case MID_RETRY_NEEDED:
+ __set_bit(NETFS_SREQ_NEED_RETRY, &rdata->subreq.flags);
rdata->result = -EAGAIN;
if (server->sign && rdata->got_bytes)
/* reset bytes number since we can not check a sign */
More information about the linux-afs
mailing list