From: Chao Yu <yuchao0@huawei.com>
To: David Laight <David.Laight@ACULAB.COM>,
'Sahitya Tummala' <stummala@codeaurora.org>,
Jaegeuk Kim <jaegeuk@kernel.org>,
"linux-f2fs-devel@lists.sourceforge.net"
<linux-f2fs-devel@lists.sourceforge.net>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] f2fs: change to use rwsem for cp_mutex
Date: Tue, 24 Nov 2020 11:12:14 +0800 [thread overview]
Message-ID: <a1b9a134-97a8-6fb7-2fdc-d4de91dff849@huawei.com> (raw)
In-Reply-To: <7f5213fb9b334d1290f019ab8ed6ee71@AcuMS.aculab.com>
On 2020/11/24 1:05, David Laight wrote:
> From: Sahitya Tummala
>> Sent: 23 November 2020 05:29
>>
>> Use rwsem to ensure serialization of the callers and to avoid
>> starvation of high priority tasks, when the system is under
>> heavy IO workload.
>
> I can't see any read lock requests.
>
> So why the change?
Hi David,
You can check the context of this patch in below link:
https://lore.kernel.org/linux-f2fs-devel/8e094021b958f9fe01df1183a2677882@codeaurora.org/T/#t
BTW, the root cause here is that mutex lock won't serialize callers, so there
could be potential starvation problem when this lock is always grabbed by high
priority tasks.
Thanks,
next prev parent reply other threads:[~2020-11-24 3:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 5:28 Sahitya Tummala
2020-11-23 17:05 ` David Laight
2020-11-24 3:12 ` Chao Yu [this message]
2020-11-24 9:12 ` David Laight
2020-11-25 13:08 ` Sahitya Tummala
2020-11-24 3:06 ` Chao Yu
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=a1b9a134-97a8-6fb7-2fdc-d4de91dff849@huawei.com \
--to=yuchao0@huawei.com \
--cc=David.Laight@ACULAB.COM \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=stummala@codeaurora.org \
/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
all inboxes | Powered by JetHome®