diff options
author | Steve French <sfrench@us.ibm.com> | 2006-07-14 18:37:11 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-08-11 17:27:07 -0400 |
commit | 3a5ff61c18659443f76bad6cf06f60103046de5d (patch) | |
tree | 541e341724b50b11c598c9790370d460f189586b /fs/cifs/file.c | |
parent | 9f737633e6ee54fc174282d49b2559bd2208391d (diff) |
[CIFS] Do not time out posix brl requests when using new posix setfileinfo
request and do not time out slow requests to a server that is still responding
well to other threads
Suggested by jra of Samba team
Signed-off-by: Steve French <sfrench@us.ibm.com>
(cherry picked from 89b57148115479eef074b8d3f86c4c86c96ac969 commit)
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 944d2b9e092d..52e2e4c8794b 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -644,8 +644,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) | |||
644 | account for negative length which we can not accept over the | 644 | account for negative length which we can not accept over the |
645 | wire */ | 645 | wire */ |
646 | if (IS_GETLK(cmd)) { | 646 | if (IS_GETLK(cmd)) { |
647 | if(experimEnabled && | 647 | if((cifs_sb->tcon->ses->capabilities & CAP_UNIX) && |
648 | (cifs_sb->tcon->ses->capabilities & CAP_UNIX) && | ||
649 | (CIFS_UNIX_FCNTL_CAP & | 648 | (CIFS_UNIX_FCNTL_CAP & |
650 | le64_to_cpu(cifs_sb->tcon->fsUnixInfo.Capability))) { | 649 | le64_to_cpu(cifs_sb->tcon->fsUnixInfo.Capability))) { |
651 | int posix_lock_type; | 650 | int posix_lock_type; |
@@ -683,8 +682,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) | |||
683 | FreeXid(xid); | 682 | FreeXid(xid); |
684 | return rc; | 683 | return rc; |
685 | } | 684 | } |
686 | if (experimEnabled && | 685 | if ((cifs_sb->tcon->ses->capabilities & CAP_UNIX) && |
687 | (cifs_sb->tcon->ses->capabilities & CAP_UNIX) && | ||
688 | (CIFS_UNIX_FCNTL_CAP & | 686 | (CIFS_UNIX_FCNTL_CAP & |
689 | le64_to_cpu(cifs_sb->tcon->fsUnixInfo.Capability))) { | 687 | le64_to_cpu(cifs_sb->tcon->fsUnixInfo.Capability))) { |
690 | int posix_lock_type; | 688 | int posix_lock_type; |