Skip to content

Commit 74ee76b

Browse files
pcacjrbrauner
authored andcommitted
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: 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 0e60bae commit 74ee76b

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
@@ -1715,6 +1715,7 @@ cifs_writev_callback(struct mid_q_entry *mid)
17151715
break;
17161716
case MID_REQUEST_SUBMITTED:
17171717
case MID_RETRY_NEEDED:
1718+
__set_bit(NETFS_SREQ_NEED_RETRY, &wdata->subreq.flags);
17181719
result = -EAGAIN;
17191720
break;
17201721
default:

0 commit comments

Comments
 (0)