Skip to content

Commit e67e75e

Browse files
pcacjrbrauner
authored andcommitted
smb: client: set missing retry flag in smb2_writev_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 97d8e8e commit e67e75e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4862,6 +4862,7 @@ smb2_writev_callback(struct mid_q_entry *mid)
48624862
break;
48634863
case MID_REQUEST_SUBMITTED:
48644864
case MID_RETRY_NEEDED:
4865+
__set_bit(NETFS_SREQ_NEED_RETRY, &wdata->subreq.flags);
48654866
result = -EAGAIN;
48664867
break;
48674868
case MID_RESPONSE_MALFORMED:

0 commit comments

Comments
 (0)