mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
cifs: Fix missing credit release on failure in cifs_issue_read()
Fix missing release of credits in the failure path in cifs_issue_read()
lest retrying the subreq just overwrites the credits value.
Fixes: 69c3c023af ("cifs: Implement netfslib hooks")
Link: https://sashiko.dev/#/patchset/20260608145432.681865-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
1b7a6da1d6
commit
c16b8c4cfb
|
|
@ -241,6 +241,7 @@ static void cifs_issue_read(struct netfs_io_subrequest *subreq)
|
|||
return;
|
||||
|
||||
failed:
|
||||
add_credits_and_wake_if(rdata->server, &rdata->credits, 0);
|
||||
subreq->error = rc;
|
||||
netfs_read_subreq_terminated(subreq);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user