diff options
| author | David Howells <dhowells@redhat.com> | 2026-07-02 09:25:00 +0100 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-02 09:16:03 -0500 |
| commit | c16b8c4cfb4fe2244cc33e469a93c1ab8684146b (patch) | |
| tree | 384ac536492623d31a77aa97caf68082614929d9 | |
| parent | 1b7a6da1d617876fbccd98da9bf1c2368e4f9424 (diff) | |
| download | linux-c16b8c4cfb4fe2244cc33e469a93c1ab8684146b.tar.gz linux-c16b8c4cfb4fe2244cc33e469a93c1ab8684146b.zip | |
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: 69c3c023af25 ("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>
| -rw-r--r-- | fs/smb/client/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index 8b25d6c9ec5e..5a25635bc62a 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -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); } |
