From: Richard Yao <ryao@cs.stonybrook.edu>
To: Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: How do I detect a block device is being used as swap inside its request queue handler?
Date: Mon, 16 Apr 2012 06:52:00 -0400 [thread overview]
Message-ID: <4F8BF9D0.4090104@cs.stonybrook.edu> (raw)
In-Reply-To: <4F8BF514.509@cs.stonybrook.edu>
[-- 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 --]
prev parent reply other threads:[~2012-04-16 10:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8BF9D0.4090104@cs.stonybrook.edu \
--to=ryao@cs.stonybrook.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.