projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b802898
)
CIFS: Fix missing a decrement of inFlight value
author
Pavel Shilovsky
<piastryyy@gmail.com>
Wed, 3 Aug 2011 19:12:18 +0000
(23:12 +0400)
committer
Steve French
<sfrench@us.ibm.com>
Wed, 3 Aug 2011 19:42:12 +0000
(19:42 +0000)
if we failed on getting mid entry in cifs_call_async.
Cc: stable@kernel.org
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/transport.c
patch
|
blob
|
history
diff --git
a/fs/cifs/transport.c
b/fs/cifs/transport.c
index
147aa22
..
c1b9c4b
100644
(file)
--- a/
fs/cifs/transport.c
+++ b/
fs/cifs/transport.c
@@
-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;
}