Skip to content

Commit 0e60bae

Browse files
pcacjrbrauner
authored andcommitted
smb: client: set missing retry flag in cifs_readv_callback()
Set NETFS_SREQ_NEED_RETRY flag to tell netfslib that the subreq needs to be retried. Fixes: ee4cdf7 ("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]>
1 parent e67e75e commit 0e60bae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/cifssmb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,7 @@ cifs_readv_callback(struct mid_q_entry *mid)
13351335
break;
13361336
case MID_REQUEST_SUBMITTED:
13371337
case MID_RETRY_NEEDED:
1338+
__set_bit(NETFS_SREQ_NEED_RETRY, &rdata->subreq.flags);
13381339
rdata->result = -EAGAIN;
13391340
if (server->sign && rdata->got_bytes)
13401341
/* reset bytes number since we can not check a sign */

0 commit comments

Comments
 (0)