lkml.org 
[lkml]   [2022]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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?

\
 
 \ /
  Last update: 2022-08-11 16:09    [W:0.049 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site