block: add queue flag for SSD/non-rotational devices
authorJens Axboe <jens.axboe@oracle.com>
Wed, 24 Sep 2008 11:03:33 +0000 (13:03 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:19 +0000 (08:56 +0200)
commita68bbddba486020c9c74825ce90c4c1ec463e0e8
treece0acea1e609185968310316d3d1ac6f730db983
parent9e49184c82e9ec3ab4d45f9ea5a17ccaf43869f0
block: add queue flag for SSD/non-rotational devices

We don't want to idle in AS/CFQ if the device doesn't have a seek
penalty. So add a QUEUE_FLAG_NONROT to indicate a non-rotational
device, low level drivers should set this flag upon discovery of
an SSD or similar device type.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/as-iosched.c
block/cfq-iosched.c
include/linux/blkdev.h