linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] fuse: Further reducing contention of fc->lock
@ 2018-11-09 10:33 Kirill Tkhai
  2018-11-09 10:33 ` [PATCH v2 1/5] fuse: Add fuse_inode argument to fuse_prepare_release() Kirill Tkhai
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Kirill Tkhai @ 2018-11-09 10:33 UTC (permalink / raw)
  To: miklos, ktkhai, linux-fsdevel

v2: Removed patch [1/6] from v1, and [4/6] from v1 is replaced
    with new patch (which is [2/5] in this v2).

There was introduced fc->bg_lock to reduce the contention,
and this patchset continues this efforts.

This patchset introduces per fuse_inode lock to protect
inode metadata, synchronization with background writes, etc.
All of the above is related to a single inode, and there
is no a reason, that inodes are concurrents of each other
to make some of actions exclusive.

So, here we introduce fuse_inode::lock spinlock and get rid
of fc->lock in many places.

---

Kirill Tkhai (5):
      fuse: Add fuse_inode argument to fuse_prepare_release()
      fuse: Convert fuse_conn::attr_version into atomic64_t
      fuse: Introduce fuse_inode::lock to protect write related fields and statistics
      fuse: Protect fuse_inode::nlookup with fuse_inode::lock
      fuse: Protect fuse_file::reserved_req via corresponding fuse_inode::lock


 fs/fuse/cuse.c    |    3 +
 fs/fuse/dev.c     |   10 +++--
 fs/fuse/dir.c     |   54 ++++++++++----------------
 fs/fuse/file.c    |  111 ++++++++++++++++++++++++++++-------------------------
 fs/fuse/fuse_i.h  |   23 ++++++++---
 fs/fuse/inode.c   |   17 +++++---
 fs/fuse/readdir.c |    4 +-
 7 files changed, 115 insertions(+), 107 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-01-10  8:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-09 10:33 [PATCH v2 0/5] fuse: Further reducing contention of fc->lock Kirill Tkhai
2018-11-09 10:33 ` [PATCH v2 1/5] fuse: Add fuse_inode argument to fuse_prepare_release() Kirill Tkhai
2018-11-09 10:33 ` [PATCH v2 2/5] fuse: Convert fuse_conn::attr_version into atomic64_t Kirill Tkhai
2018-11-09 10:33 ` [PATCH v2 3/5] fuse: Introduce fuse_inode::lock to protect write related fields and statistics Kirill Tkhai
2018-11-09 10:33 ` [PATCH v2 4/5] fuse: Protect fuse_inode::nlookup with fuse_inode::lock Kirill Tkhai
2018-11-09 10:33 ` [PATCH v2 5/5] fuse: Protect fuse_file::reserved_req via corresponding fuse_inode::lock Kirill Tkhai
2018-12-10 16:20 ` [PATCH v2 0/5] fuse: Further reducing contention of fc->lock Kirill Tkhai
2019-01-10  8:38   ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).