diff options
author | 2024-03-28 07:59:18 +0000 | |
---|---|---|
committer | 2024-05-01 18:08:21 +0100 | |
commit | c20c0d7325abd9a8bf985a934591d75d514a3d4d (patch) | |
tree | 1b0f6f4d1f2ddabcb27a3c4ed65ac5db3a84da1f /scripts/generate_rust_analyzer.py | |
parent | cifs: Add mempools for cifs_io_request and cifs_io_subrequest structs (diff) | |
download | wireguard-linux-c20c0d7325abd9a8bf985a934591d75d514a3d4d.tar.xz wireguard-linux-c20c0d7325abd9a8bf985a934591d75d514a3d4d.zip |
cifs: Make add_credits_and_wake_if() clear deducted credits
Make add_credits_and_wake_if() clear the amount of credits in the
cifs_credits struct after it has returned them to the overall counter.
This allows add_credits_and_wake_if() to be called multiple times during
the error handling and cleanup without accidentally returning the credits
again and again.
Note that the wake_up() in add_credits_and_wake_if() may also be
superfluous as ->add_credits() also does a wake on the request_q.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
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
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions