[SCSI] tgt: use scsi_init_io instead of scsi_alloc_sgtable
authorBoaz Harrosh <bharrosh@panasas.com>
Fri, 14 Dec 2007 00:14:27 +0000 (16:14 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 30 Jan 2008 19:03:40 +0000 (13:03 -0600)
commitbb52d82f45df3a2661d88befba7c79a7db8be496
tree875af65ede88fe724fb350e43000fe99262fec9f
parent03e7925d0737d99086acee6263424dafa34e45ae
[SCSI] tgt: use scsi_init_io instead of scsi_alloc_sgtable

If we export scsi_init_io()/scsi_release_buffers() instead of
scsi_{alloc,free}_sgtable() from scsi_lib than tgt code is much more
insulated from scsi_lib changes. As a bonus it will also gain bidi
capability when it comes.

[jejb: rebase on to sg_table and fix up rejections]

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_tgt_lib.c
include/scsi/scsi_cmnd.h