]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: remove superfluous inode_lock in cifs_{strict_}fsync
authorJeff Layton <jlayton@kernel.org>
Mon, 8 Apr 2019 14:59:42 +0000 (10:59 -0400)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:55 +0000 (23:24 -0500)
commit4cf8064a856d3760e83ad297de0c0b9f3201e8dc
treec1f33e27660b7bf1c987716a6475057c57a03b7b
parentca196a56ea221061ea98b4943934d3ba722d3a31
cifs: remove superfluous inode_lock in cifs_{strict_}fsync

Originally, filemap_write_and_wait took the i_mutex internally, but
commit 6ef985a09bf9 pushed the mutex acquisition into the individual
fsync routines, leaving it up to the subsystem maintainers to remove
it if it wasn't needed.

For cifs, I see no reason to take the inode_lock here. All of the
operations inside that lock are protected in other ways.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/file.c