diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 147aa22c3c3a4b0f2b647b6978ec31340ff1a5da..c1b9c4b107398bd31504f594f294c5bb6dc7ef60 100644 --- 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; }