[SCSI] scsi_lib_dma: fix bug with dma maps on nested scsi objects
authorJames Bottomley <James.Bottomley@suse.de>
Thu, 5 Nov 2009 19:33:12 +0000 (13:33 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:30 +0000 (12:01 -0600)
commitd139b9bd0e52dda14fd13412e7096e68b56d0076
tree518daa6384ff606ec77dd8fe4714ea2f177d92c4
parent5917290ce9b376866b165d02a5ed88d5ecdb32d0
[SCSI] scsi_lib_dma: fix bug with dma maps on nested scsi objects

Some of our virtual SCSI hosts don't have a proper bus parent at the
top, which can be a problem for doing DMA on them

This patch makes the host device cache a pointer to the physical bus
device and provides an extra API for setting it (the normal API picks
it up from the parent).  This patch also modifies the qla2xxx and lpfc
vport logic to use the new DMA host setting API.

Acked-By: James Smart <james.smart@emulex.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/hosts.c
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/scsi_lib_dma.c
include/scsi/scsi_host.h