diff options
author | Fernando Luis Vázquez Cao <fernando@oss.ntt.co.jp> | 2008-10-27 05:44:46 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 02:28:41 -0500 |
commit | 88e740f1654bf28565edd528a060695c1f2b5ad7 (patch) | |
tree | c66a57396c9b881df1734f5b46e6681bc536c132 /include/linux/blkdev.h | |
parent | 3c92ec8ae91ecf59d88c798301833d7cf83f2179 (diff) |
block: add queue flag for paravirt frontend drivers
As is the case with SSD devices, we do not want to idle in AS/CFQ when
the block device is a paravirt front-end driver. This patch adds a flag
(QUEUE_FLAG_VIRT) which should be used by front-end drivers such as
virtio_blk and xen-blkfront to indicate a paravirtualized device.
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 031a315c0509..482e9600f7a2 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -449,6 +449,7 @@ struct request_queue | |||
449 | #define QUEUE_FLAG_FAIL_IO 12 /* fake timeout */ | 449 | #define QUEUE_FLAG_FAIL_IO 12 /* fake timeout */ |
450 | #define QUEUE_FLAG_STACKABLE 13 /* supports request stacking */ | 450 | #define QUEUE_FLAG_STACKABLE 13 /* supports request stacking */ |
451 | #define QUEUE_FLAG_NONROT 14 /* non-rotational device (SSD) */ | 451 | #define QUEUE_FLAG_NONROT 14 /* non-rotational device (SSD) */ |
452 | #define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */ | ||
452 | 453 | ||
453 | static inline int queue_is_locked(struct request_queue *q) | 454 | static inline int queue_is_locked(struct request_queue *q) |
454 | { | 455 | { |