From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: miklos@szeredi.hu, ktkhai@virtuozzo.com,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/6] fuse: Further reducing contention of fc->lock
Date: Tue, 06 Nov 2018 12:43:35 +0300 [thread overview]
Message-ID: <154149673368.18189.14752124997476502777.stgit@localhost.localdomain> (raw)
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 (6):
fuse: Change argument of fuse_flush_writepages()
fuse: Add fuse_inode argument to fuse_prepare_release()
fuse: Introduce fuse_inode::lock to protect write related fields and statistics
fuse: Implement fuse_attr_version_inc()
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 | 41 +++++++++---------
fs/fuse/file.c | 119 ++++++++++++++++++++++++++++-------------------------
fs/fuse/fuse_i.h | 27 ++++++++++--
fs/fuse/inode.c | 16 ++++---
fs/fuse/readdir.c | 4 +-
7 files changed, 126 insertions(+), 94 deletions(-)
--
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
next reply other threads:[~2018-11-06 19:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 9:43 Kirill Tkhai [this message]
2018-11-06 9:43 ` [PATCH 1/6] fuse: Change argument of fuse_flush_writepages() Kirill Tkhai
2018-11-07 14:00 ` Miklos Szeredi
2018-11-06 9:43 ` [PATCH 2/6] fuse: Add fuse_inode argument to fuse_prepare_release() Kirill Tkhai
2018-11-06 9:43 ` [PATCH 3/6] fuse: Introduce fuse_inode::lock to protect write related fields and statistics Kirill Tkhai
2018-11-06 9:43 ` [PATCH 4/6] fuse: Implement fuse_attr_version_inc() Kirill Tkhai
2018-11-07 14:12 ` Miklos Szeredi
2018-11-06 9:44 ` [PATCH 5/6] fuse: Protect fuse_inode::nlookup with fuse_inode::lock Kirill Tkhai
2018-11-07 14:20 ` Miklos Szeredi
2018-11-06 9:44 ` [PATCH 6/6] fuse: Protect fuse_file::reserved_req via corresponding fuse_inode::lock Kirill Tkhai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=154149673368.18189.14752124997476502777.stgit@localhost.localdomain \
--to=ktkhai@virtuozzo.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).