diff options
author | Steve French <sfrench@us.ibm.com> | 2006-03-05 03:39:55 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-03-05 03:39:55 +0000 |
commit | e77e6f3be93763ef88ccbaa9e0ebda5360d92f7c (patch) | |
tree | 35260c1d1968c448af77c267814d925d3c62f475 /fs/cifs/cifsproto.h | |
parent | 501f74f29498543c27f4f9697f5c1e980dd2de0d (diff) | |
download | kernel_samsung_aries-e77e6f3be93763ef88ccbaa9e0ebda5360d92f7c.zip kernel_samsung_aries-e77e6f3be93763ef88ccbaa9e0ebda5360d92f7c.tar.gz kernel_samsung_aries-e77e6f3be93763ef88ccbaa9e0ebda5360d92f7c.tar.bz2 |
[CIFS] Always match oplock break (cache notification) to the right tcp
session when multiply mounted.
Fixes slow response when cifs client is mounted to shares on multiple
servers and oplock break occurs (usually due to attempt to multiply open a
file). When treeids on mutiple mounted shares match and we find the wrong
match first, we searched for the wrong cached files to send oplock break
response for which usually meant that no matching file was found and thus
the server would have to timeout the notification. Oplock break timeout is
about 20 seconds on some servers so this could cause significantly slower
performance on file open calls in a few cases (in particular when multiple
shares are mounted from multiple servers, tree ids match, and we have a
cached file which is later opened multiple times). This was the most
important of the bugs that was found and fixed at Connectathon
(interoperability testing event) this week.
Acked-by: Shaggy (shaggy@austin.ibm.com)
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 3c03aad..7b25463 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -52,7 +52,7 @@ extern int SendReceive2(const unsigned int /* xid */ , struct cifsSesInfo *, int * /* type of buf returned */ , const int long_op); extern int checkSMBhdr(struct smb_hdr *smb, __u16 mid); extern int checkSMB(struct smb_hdr *smb, __u16 mid, int length); -extern int is_valid_oplock_break(struct smb_hdr *smb); +extern int is_valid_oplock_break(struct smb_hdr *smb, struct TCP_Server_Info *); extern int is_size_safe_to_change(struct cifsInodeInfo *); extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *); extern unsigned int smbCalcSize(struct smb_hdr *ptr); |