* How do I detect a block device is being used as swap inside its request queue handler?
@ 2012-04-16 10:31 Richard Yao
2012-04-16 10:52 ` Richard Yao
0 siblings, 1 reply; 2+ messages in thread
From: Richard Yao @ 2012-04-16 10:31 UTC (permalink / raw)
To: Kernel development list
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do I detect a block device is being used as swap inside its request queue handler?
2012-04-16 10:31 How do I detect a block device is being used as swap inside its request queue handler? Richard Yao
@ 2012-04-16 10:52 ` Richard Yao
0 siblings, 0 replies; 2+ messages in thread
From: Richard Yao @ 2012-04-16 10:52 UTC (permalink / raw)
To: Kernel development list
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
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.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-16 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 10:31 How do I detect a block device is being used as swap inside its request queue handler? Richard Yao
2012-04-16 10:52 ` Richard Yao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.