aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2025-07-01 16:38:43 +0000
committerChristian Brauner <[email protected]>2025-07-01 20:37:13 +0000
commit74ee76bea4b445c023d04806e0bcd78a912fd30b (patch)
treeb8dcd9cfef71f5656321ef3a6db3825089e2e6c0
parentsmb: client: set missing retry flag in cifs_readv_callback() (diff)
downloadkernel-74ee76bea4b445c023d04806e0bcd78a912fd30b.tar.gz
kernel-74ee76bea4b445c023d04806e0bcd78a912fd30b.zip
smb: client: set missing retry flag in cifs_writev_callback()
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) <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/[email protected] Tested-by: Steve French <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
-rw-r--r--fs/smb/client/cifssmb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/cifssmb.c b/fs/smb/client/cifssmb.c
index f9ccae5de5b8..0e509a0433fb 100644
--- a/fs/smb/client/cifssmb.c
+++ b/fs/smb/client/cifssmb.c
@@ -1715,6 +1715,7 @@ cifs_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;
default: