[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YvUNj9cTFhvHKsF4@infradead.org>
Date: Thu, 11 Aug 2022 07:09:19 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Hongchen Zhang <zhanghongchen@...ngson.cn>
Cc: Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] blk-wbt: do not throttle swap write on processes other
than kswapd
On Thu, Aug 11, 2022 at 07:32:25PM +0800, Hongchen Zhang wrote:
> + if (current_is_kswapd() ||
> + (bio->bi_end_io != end_swap_bio_write))
> + flags |= WBT_TRACKED;
Why can't this just use REQ_SWAP instead of doing strange poking into
deep kernel internals?
Powered by blists - more mailing lists