Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <pc@manguebit.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250701163852.2171681-9-dhowells@redhat.com
Tested-by: Steve French <sfrench@samba.org>
Cc: linux-cifs@vger.kernel.org
Cc: netfs@lists.linux.dev
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Paulo Alcantara and committed by
Christian Brauner
74ee76be 0e60bae2

+1
+1
fs/smb/client/cifssmb.c
··· 1715 1715 break; 1716 1716 case MID_REQUEST_SUBMITTED: 1717 1717 case MID_RETRY_NEEDED: 1718 + __set_bit(NETFS_SREQ_NEED_RETRY, &wdata->subreq.flags); 1718 1719 result = -EAGAIN; 1719 1720 break; 1720 1721 default: