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)
commit1308835ffffe6d61ad1f48c5c381c9cc47f683ec
tree5430cde36604537fdc3c597f53f65cba990f08fd
parent16642eb68216d8e0e136a99e514e9166e7125838
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