OpenCloudOS-Kernel/drivers/block
Fernando Luis Vázquez Cao 766ca4428d virtio_blk: use a wrapper function to access io context information of IO requests
struct request has an ioprio member but it is never updated because
currently bios do not hold io context information. The implication of
this is that virtio_blk ends up passing useless information to the
backend driver.

That said, some IO schedulers such as CFQ do store io context
information in struct request, but use private members for that, which
means that that information cannot be directly accessed in a IO
scheduler-independent way.

This patch adds a function to obtain the ioprio of a request. We should
avoid accessing ioprio directly and use this function instead, so that
its users do not have to care about future changes in block layer
structures or what the currently active IO controller is.

This patch does not introduce any functional changes but paves the way
for future clean-ups and enhancements.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:02 +02:00
..
aoe Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
paride device create: block: convert device_create to device_create_drvdata 2008-07-21 21:54:41 -07:00
DAC960.c DAC960: push down BKL 2008-07-04 09:52:13 +02:00
DAC960.h Fix DAC960 driver on machines which don't support 64-bit DMA 2007-09-11 17:21:19 -07:00
Kconfig update the BLK_DEV_HD help text 2008-07-16 20:33:47 +02:00
Makefile move ide/legacy/hd.c to drivers/block/ 2008-07-16 20:33:47 +02:00
amiflop.c m68k: Return -ENODEV if no device is found 2008-05-18 13:28:50 -07:00
ataflop.c m68k: Return -ENODEV if no device is found 2008-07-20 17:24:38 -07:00
brd.c brd: fix name argument of unregister_blkdev() 2008-08-20 15:40:30 -07:00
cciss.c cciss: fix bug if scsi tape support is disabled 2008-08-06 12:30:04 +02:00
cciss.h cciss: make rebuild_lun_table behave better 2008-08-06 12:30:03 +02:00
cciss_cmd.h [PATCH] cciss: add support for 1024 logical volumes 2006-12-07 08:39:30 -08:00
cciss_scsi.c cciss: add support for multi lun tape devices 2008-08-06 12:30:04 +02:00
cciss_scsi.h cciss: update copyright notices 2007-10-29 11:33:05 +01:00
cpqarray.c proc: remove proc_root_driver 2008-04-29 08:06:18 -07:00
cpqarray.h
cryptoloop.c drivers: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:32 -04:00
floppy.c drivers/block/floppy.c: replace init_module&cleanup_module with module_init&module_exit 2008-04-29 08:06:03 -07:00
hd.c hd.c: remove the #include <linux/mc146818rtc.h> 2008-07-16 20:33:48 +02:00
ida_cmd.h
ida_ioctl.h
loop.c block: make queue flags non-atomic 2008-04-29 14:48:33 +02:00
nbd.c nbd: fix memory leak of nbd_dev array 2008-08-20 15:40:30 -07:00
pktcdvd.c Revert "pktcdvd: push BKL down into driver" 2008-08-27 13:42:00 -07:00
ps3disk.c Kill REQ_TYPE_FLUSH 2008-10-09 08:56:02 +02:00
smart1,2.h
sunvdc.c block/sunvdc.c:print_version() must be __devinit 2008-02-01 09:26:32 +01:00
swim3.c Fix compile of swim3 as module 2008-02-14 20:58:04 -08:00
sx8.c block: replace remaining __FUNCTION__ occurrences 2008-04-21 09:51:04 +02:00
ub.c ub: Cosmetics 2008-05-02 10:25:52 -07:00
umem.c Cleanup umem driver: fix most checkpatch warnings, conform to kernel 2007-12-18 08:29:28 +01:00
umem.h drivers/block/umem: trim trailing whitespace 2007-10-10 09:25:59 +02:00
viodasd.c [POWERPC] iSeries: Remove unused mail address 2008-05-23 16:45:04 +10:00
virtio_blk.c virtio_blk: use a wrapper function to access io context information of IO requests 2008-10-09 08:56:02 +02:00
xd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xd.h [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xen-blkfront.c xen-blkfront.c: make blkif_ioctl() static 2008-08-06 12:30:04 +02:00
xsysace.c [POWERPC] Xilinx: Update compatible to use values generated by BSP generator. 2008-02-06 10:23:21 -07:00
z2ram.c m68k: Return -ENODEV if no device is found 2008-05-18 13:28:50 -07:00