]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sg: convert the indirect IO path to use the block layer
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 29 Aug 2008 10:32:18 +0000 (12:32 +0200)
committerJens Axboe <jens.axboe@oracle.com>
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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Douglas Gilbert <dougg@torque.net>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/scsi/sg.c