From: Jens Axboe <jens.axboe@oracle.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Rik van Riel <riel@redhat.com>
Subject: Re: [PATCH] congestion_wait() don't use WRITE
Date: Fri, 2 Oct 2009 10:10:12 +0200 [thread overview]
Message-ID: <20091002081012.GH14918@kernel.dk> (raw)
In-Reply-To: <20091002170343.5F67.A69D9226@jp.fujitsu.com>
On Fri, Oct 02 2009, KOSAKI Motohiro wrote:
>
> commit 8aa7e847d (Fix congestion_wait() sync/async vs read/write confusion)
> replace WRITE with BLK_RW_ASYNC.
> Unfortunately, concurrent mm development made the unchanged place
> accidentally.
I see that was added after 2.6.31, and that is wrong. Your patch looks
good.
Acked-by: Jens Axboe <jens.axboe@oracle.com>
>
> This patch fixes it too.
>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> ---
> mm/vmscan.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 4a7b0d5..e4a915b 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -1088,7 +1088,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
> int lumpy_reclaim = 0;
>
> while (unlikely(too_many_isolated(zone, file, sc))) {
> - congestion_wait(WRITE, HZ/10);
> + congestion_wait(BLK_RW_ASYNC, HZ/10);
>
> /* We are about to die and free our memory. Return now. */
> if (fatal_signal_pending(current))
> --
> 1.6.0.GIT
>
>
>
--
Jens Axboe
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2009-10-02 8:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 8:06 KOSAKI Motohiro
2009-10-02 8:10 ` Jens Axboe [this message]
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=20091002081012.GH14918@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
/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