cifs: Fix the smb1 readv callback to correctly call netfs

Fix cifs_readv_callback() to call netfs_read_subreq_terminated() rather
than queuing the subrequest work item (which is unset). Also call the
I/O progress tracepoint.

cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Fixes: e2d46f2ec332 ("netfs: Change the read result collector to only use one work item")
Reported-by: Jean-Christophe Guillain <jean-christophe@guillain.net>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219793
Tested-by: Jean-Christophe Guillain <jean-christophe@guillain.net>
Tested-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by David Howells and committed by Steve French 66cb85c4 d082ecbc

+2 -1
+2 -1
fs/smb/client/cifssmb.c
··· 1338 rdata->credits.value = 0; 1339 rdata->subreq.error = rdata->result; 1340 rdata->subreq.transferred += rdata->got_bytes; 1341 - queue_work(cifsiod_wq, &rdata->subreq.work); 1342 release_mid(mid); 1343 add_credits(server, &credits, 0); 1344 }
··· 1338 rdata->credits.value = 0; 1339 rdata->subreq.error = rdata->result; 1340 rdata->subreq.transferred += rdata->got_bytes; 1341 + trace_netfs_sreq(&rdata->subreq, netfs_sreq_trace_io_progress); 1342 + netfs_read_subreq_terminated(&rdata->subreq); 1343 release_mid(mid); 1344 add_credits(server, &credits, 0); 1345 }