projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e659c6
)
[CIFS] Fix minor problem with previous patch
author
Steve French
<sfrench@us.ibm.com>
Thu, 9 Nov 2006 21:25:37 +0000
(21:25 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Thu, 9 Nov 2006 21:25:37 +0000
(21:25 +0000)
The patch
NFS stress test generates flood of "close with pending write
was missing an if
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/file.c
b/fs/cifs/file.c
index 4b07a8cc4633e918757d66acf92ec885591b07f0..2436ed8fc8400e2d86b4e5bbb569b122ac013e34 100644
(file)
--- a/
fs/cifs/file.c
+++ b/
fs/cifs/file.c
@@
-498,7
+498,8
@@
int cifs_close(struct inode *inode, struct file *file)
msleep(timeout);
timeout *= 4;
}
- cERROR(1,("close with pending writes"));
+ if(atomic_read(&pSMBFile->wrtPending))
+ cERROR(1,("close with pending writes"));
rc = CIFSSMBClose(xid, pTcon,
pSMBFile->netfid);
}