]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: add spinlock to protect fc reqctr
authorAshish Samant <ashish.samant@oracle.com>
Wed, 15 Apr 2015 17:44:46 +0000 (10:44 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 29 Jun 2015 15:31:24 +0000 (08:31 -0700)
commit8e97c3c5ecad68585ca6580cdf6b8a6f11d2ec8e
tree191df68e9501a0a4e7fbe0b6e5133359057961a6
parente2185fda20822d7bc78baafbeca761e8a265731a
fuse: add spinlock to protect fc reqctr

fc->lock protects other members along with sequence counter. Since the
change introduced by next few patches increases parallelism, it increases
contention on fc->lock. Having a new seq_lock spinlock to protect unique
sequence counter will reduce contention and also makes code simpler.

Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
fs/fuse/dev.c
fs/fuse/fuse_i.h
fs/fuse/inode.c