sg: convert the indirect IO path to use the block layer
authorFUJITA Tomonori <[email protected]>
Fri, 29 Aug 2008 10:32:18 +0000 (12:32 +0200)
committerJens Axboe <[email protected]>
Thu, 9 Oct 2008 06:56:10 +0000 (08:56 +0200)
commit10db10d144c0248f285242f79daf6b9de6b00a62
tree315806c8e09f6007bdc0c1dfeea1313f15815bfd
parent6e5a30cba5e7c03b2cd564e968f1dd667a0f7c42
sg: convert the indirect IO path to use the block layer

This patch converts the indirect IO path (including mmap IO and old
struct sg_header) to use the block layer functions (blk_get_request,
blk_execute_rq_nowait, blk_rq_map_user, etc) instead of
scsi_execute_async().

[Jens: fixed compile error with SCSI logging enabled]

Signed-off-by: FUJITA Tomonori <[email protected]>
Signed-off-by: Douglas Gilbert <[email protected]>
Cc: Mike Christie <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/scsi/sg.c