]> git.baikalelectronics.ru Git - kernel.git/commit
block: export SSD/non-rotational queue flag through sysfs
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 7 Jan 2009 11:22:39 +0000 (12:22 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 30 Jan 2009 11:34:37 +0000 (12:34 +0100)
commitbb060275549327c5f042a980efff63d4fd59d942
tree5430cde36604537fdc3c597f53f65cba990f08fd
parent16fc7ace156b756a7996be97363e96b76fecb6fc
block: export SSD/non-rotational queue flag through sysfs

For some devices (i.e. CFA ATA) we can't reliably detect whether
the device is of rotational or non-rotational type so we need to
leave the final decision about this setting to the user-space.

As a bonus do a minor CodingStyle fixup in queue_nomerges_store().

Suggested-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-sysfs.c