All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Josh Triplett <josh@joshtriplett.org>, 648367@bugs.debian.org
Cc: dm-devel@redhat.com
Subject: Bug#648367: device-mapper devices such as dm-crypt always have rotational=1; should inherit "rotational" setting from underlying devices
Date: Mon, 14 Nov 2011 01:05:29 +0000	[thread overview]
Message-ID: <1321232729.3059.42.camel@deadeye> (raw)
In-Reply-To: <20111110195943.12083.93273.reportbug@leaf>

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

On Thu, 2011-11-10 at 11:59 -0800, Josh Triplett wrote:
> Source: linux-2.6
> Version: 3.1.0-1~experimental.1
> Severity: normal
> 
> I use dm-crypt on my system, and I have an SSD.  The underlying disk
> device, sda, has rotational=0:
> 
> ~$ cat /sys/block/sda/queue/rotational
> 0
> 
> However, the device-mapper devices have rotational=1:
> 
> ~$ head /sys/block/dm-*/queue/rotational
> ==> /sys/block/dm-0/queue/rotational <==
> 1
> 
> ==> /sys/block/dm-1/queue/rotational <==
> 1
> 
> ==> /sys/block/dm-2/queue/rotational <==
> 1
> 
> The device-mapper devices should inherit the setting for "rotational"
> from their underlying devices.

I'm not sure that's true.  Since their queues should feed into the
queues for the underlying devices, it may be that they shouldn't
themselves be scheduled as if they are rotating media.

I do wonder whether rotational should still be the default - almost all
real disks are handled by a small number of drivers like sd, while there
is a wide variety of networked, stacked and virtual disk drivers in use.

Ben.

-- 
Ben Hutchings
The world is coming to an end.	Please log off.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

       reply	other threads:[~2011-11-14  1:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20111110195943.12083.93273.reportbug@leaf>
2011-11-14  1:05 ` Ben Hutchings [this message]
2011-11-14  2:26   ` Bug#648367: device-mapper devices such as dm-crypt always have rotational=1; should inherit "rotational" setting from underlying devices Josh Triplett
2011-11-15  7:34     ` Milan Broz
2011-11-15 16:41       ` Bug#648367: [dm-devel] " Josh Triplett
2011-11-15 17:05         ` Milan Broz

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=1321232729.3059.42.camel@deadeye \
    --to=ben@decadent.org.uk \
    --cc=648367@bugs.debian.org \
    --cc=dm-devel@redhat.com \
    --cc=josh@joshtriplett.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.