lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ