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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F8BF9D0.4090104@cs.stonybrook.edu>
Date:	Mon, 16 Apr 2012 06:52:00 -0400
From:	Richard Yao <ryao@...stonybrook.edu>
To:	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: How do I detect a block device is being used as swap inside its
 request queue handler?

On 04/16/12 06:31, Richard Yao wrote:
> Dear Linus Torvalds et al,
> 
> I am having some trouble with an out of tree module for a virtual block
> device driver. I need to disable the direct reclaim path when the device
> is used as swap. I cannot see a way to detect that the device is being
> used as swap, so I am currently disabling it unconditionally.
> 
> Is there a clean way to detect that the block device is being used as
> swap? I am not subscribed to the list, so please CC replies to me.
> 
> Yours truly,
> Richard Yao
> 

Please disregard my previous email. I just discovered a deadlock that
can occur if this were done.


Download attachment "signature.asc" of type "application/pgp-signature" (901 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ