diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-05-20 00:22:55 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-23 06:59:16 +0400 |
commit | 59ffd84141472c45a1729a739e4730f974d26e63 (patch) | |
tree | 4790475b37a8130049ca6b33c2fe4115ee709e94 /fs/cifs/transport.c | |
parent | fcc31cb6f1ae6c4e64a463b124d3c2e9cbd7dd70 (diff) | |
download | linux-59ffd84141472c45a1729a739e4730f974d26e63.tar.xz |
cifs: add ignore_pend flag to cifs_call_async
The current code always ignores the max_pending limit. Have it instead
only optionally ignore the pending limit. For CIFSSMBEcho, we need to
ignore it to make sure they always can go out. For async reads, writes
and potentially other calls, we need to respect it.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 67f59c7b5d79..16bcc0725cee 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -343,13 +343,14 @@ wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) */ int cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, - unsigned int nvec, mid_callback_t *callback, void *cbdata) + unsigned int nvec, mid_callback_t *callback, void *cbdata, + bool ignore_pend) { int rc; struct mid_q_entry *mid; struct smb_hdr *hdr = (struct smb_hdr *)iov[0].iov_base; - rc = wait_for_free_request(server, CIFS_ASYNC_OP); + rc = wait_for_free_request(server, ignore_pend ? CIFS_ASYNC_OP : 0); if (rc) return rc; |