[SCSI] scsi_debug: add get_data_transfer_info helper function
authorFUJITA Tomonori <tomof@acm.org>
Tue, 22 Jan 2008 16:31:59 +0000 (01:31 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 30 Jan 2008 19:14:24 +0000 (13:14 -0600)
commit3de9f944797177e405dcab05f12560a497c019bb
treef3c4f4608cd0889055b9e660aa8960c6fbdb8bdb
parentd3f46f39b7092594b498abc12f0c73b0b9913bde
[SCSI] scsi_debug: add get_data_transfer_info helper function

This adds get_data_transfer_info helper function that get lha and
sectors for READ_* and WRITE_* commands (and XDWRITEREAD_10 later).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_debug.c