]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/cifs/file.c
[CIFS] lock inode open file list in close in case racing with open
authorSteve French <sfrench@us.ibm.com>
Tue, 11 Sep 2007 05:50:53 +0000 (05:50 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 11 Sep 2007 05:50:53 +0000 (05:50 +0000)
commit4efa53f0907bb4378015c129a2c11b8d3a90bce2
tree030c88b99de6caaf58cee600c5d697460c215b6c
parent15745320f374aa6cbfe4836b76469159c0f49640
[CIFS] lock inode open file list in close in case racing with open

Harmless since it only protected turning off caching for the
inode, but cleaner to lock around this in case we have a close
racing with open.

Signed-off-by: Shaggy <shaggy@us.ibm.com>
CC: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c