From: Song Liu <songliubraving@fb.com>
To: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Cc: Michal Hocko <mhocko@kernel.org>, Coly Li <colyli@suse.de>,
"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
Kent Overstreet <kent.overstreet@gmail.com>
Subject: Re: [PATCH] raid5: use memalloc_noio_save()/restore in resize_chunks()
Date: Thu, 30 Apr 2020 06:36:37 +0000 [thread overview]
Message-ID: <1B9A34D3-C98E-49A7-9222-7D25F5F7CCC9@fb.com> (raw)
In-Reply-To: <b7584395-6230-36a6-9d78-dd1e1b630bbd@cloud.ionos.com>
> On Apr 15, 2020, at 7:57 AM, Guoqing Jiang <guoqing.jiang@cloud.ionos.com> wrote:
>
> On 15.04.20 16:23, Michal Hocko wrote:
>> On Wed 15-04-20 16:10:08, Guoqing Jiang wrote:
>>> On 15.04.20 13:48, Michal Hocko wrote:
>>>> On Thu 09-04-20 23:38:13, Guoqing Jiang wrote:
>>>> [...]
>>>>> Not know memalloc_noio_{save,restore} well, but I guess it is better
>>>>> to use them to mark a small scope, just my two cents.
>>>> This would go against the intentio of the api. It is really meant to
>>>> define reclaim recursion problematic scope.
>>> Well, in current proposal, the scope is just when
>>> scribble_allo/kvmalloc_array is called.
>>>
>>> memalloc_noio_save
>>> scribble_allo/kvmalloc_array
>>> memalloc_noio_restore
>>>
>>> With the new proposal, the marked scope would be bigger than current one
>>> since there
>>> are lots of places call mddev_suspend/resume.
>>>
>>> mddev_suspend
>>> memalloc_noio_save
>>> ...
>>> memalloc_noio_restore
>>> mddev_resume
>>>
>>> IMHO, if the current proposal works then what is the advantage to increase
>>> the scope.
>> The advantage is twofold. It serves the documentation purpose because it
>> is clear _what_ and _why_ is the actual allocation restricted context.
>> In this case mddev_{suspend,resume} because XYZ and you do not have to
>> care about __GFP_IO for _any_ allocation inside the scope.
>
> Personally, I'd prefer fine grained protection scope, anyway just my own
> flavor. And I think Song has his opinion about the proposal, I will respect
> his decision.
Thanks Coly, Guoqing, and Michal for these great inputs.
Coly's v3 set looks good to me. I will go ahead apply that version to md-next
branch.
Thanks again,
Song
next prev parent reply other threads:[~2020-04-30 6:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 8:13 [PATCH] raid5: use memalloc_noio_save()/restore in resize_chunks() Coly Li
2020-04-03 13:17 ` kbuild test robot
2020-04-05 15:53 ` Guoqing Jiang
2020-04-07 15:09 ` Coly Li
2020-04-09 21:38 ` Guoqing Jiang
2020-04-10 9:36 ` Coly Li
2020-04-15 11:48 ` Michal Hocko
2020-04-15 14:10 ` Guoqing Jiang
2020-04-15 14:23 ` Michal Hocko
2020-04-15 14:57 ` Guoqing Jiang
2020-04-30 6:36 ` Song Liu [this message]
2020-04-05 17:43 ` Song Liu
2020-04-07 14:42 ` Coly Li
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=1B9A34D3-C98E-49A7-9222-7D25F5F7CCC9@fb.com \
--to=songliubraving@fb.com \
--cc=colyli@suse.de \
--cc=guoqing.jiang@cloud.ionos.com \
--cc=kent.overstreet@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=mhocko@kernel.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