Unverified Commit e67e75ed authored by Paulo Alcantara's avatar Paulo Alcantara Committed by Christian Brauner
Browse files

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: ee4cdf7b ("netfs: Speed up buffered reading")
Signed-off-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250701163852.2171681-7-dhowells@redhat.com


Tested-by: default avatarSteve French <sfrench@samba.org>
Cc: linux-cifs@vger.kernel.org
Cc: netfs@lists.linux.dev
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 97d8e8e5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4862,6 +4862,7 @@ smb2_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;
	case MID_RESPONSE_MALFORMED: