block: implement request_queue->dma_drain_needed
authorTejun Heo <htejun@gmail.com>
Tue, 19 Feb 2008 10:36:53 +0000 (11:36 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 10:36:53 +0000 (11:36 +0100)
commit2fb98e8414c42cb14698833aac640b143b9ade4f
treeab241305b5ce3ea5ef3e76df7abe04b831cd9e34
parent6b00769fe1502b4ad97bb327ef7ac971b208bfb5
block: implement request_queue->dma_drain_needed

Draining shouldn't be done for commands where overflow may indicate
data integrity issues.  Add dma_drain_needed callback to
request_queue.  Drain buffer is appened iff this function returns
non-zero.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-merge.c
block/blk-settings.c
include/linux/blkdev.h