CIFS: Fix missing a decrement of inFlight value
Subsystems (2)
PATCH 1/1 CIFS: Fix missing a decrement of inFlight value
if we failed on getting mid entry in cifs_call_async.
Signed-off-by Pavel Shilovsky <[email protected]>
--- fs/cifs/transport.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/cifs/transport.c +2 -0
@@ -362,6 +362,8 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, mid =AllocMidQEntry (hdr, server);if (mid ==NULL ) {mutex_unlock (&server->srv_mutex); +atomic_dec (&server->inFlight); +wake_up (&server->request_q);return -ENOMEM ; }
Signature · 1 line
1.7.1
A message that is not in the archive (sent off-list or not yet received): 1312398738-14346-1-git-send-email-piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Jeff Layton
Reviewed-byQuoted 13 lines · On Wed, 3 Aug 2011 23:12:18 +0400 Pavel Shilovsky…
if we failed on getting mid entry in
cifs_call_async.Signed-off-by Pavel Shilovsky <[email protected]>--- fs/cifs/transport.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)fs/cifs/transport.c +0
-0
fs/cifs/transport.c cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, · line 369
Quoted 8 lines
fs/cifs/transport.c +2
-0@@ -362,6 +362,8 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, mid =AllocMidQEntry (hdr, server);if (mid ==NULL ) {mutex_unlock (&server->srv_mutex); +atomic_dec (&server->inFlight); +wake_up (&server->request_q);return -ENOMEM ; }
Good catch -- looks correct:
Reviewed-by Jeff Layton <[email protected]>