cifs: Don't advance the I/O iterator before terminating subrequest
authorDavid Howells <dhowells@redhat.com>
Fri, 31 May 2024 14:53:42 +0000 (15:53 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 7 Jun 2024 06:05:26 +0000 (01:05 -0500)
commita88d60903696c01de577558080ec4fc738a70475
tree1cacacd3139dfc91bb2062056595d3c78203c4ce
parent02c418774f76a0a36a6195c9dbf8971eb4130a15
cifs: Don't advance the I/O iterator before terminating subrequest

There's now no need to make sure subreq->io_iter is advanced to match
subreq->transferred before calling one of the netfs subrequest termination
functions as the check has been removed netfslib and the iterator is reset
prior to retrying a subreq.

Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Paulo Alcantara <pc@manguebit.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2pdu.c