target/tcm_qla2xxx: Add/use target_reverse_dma_direction() in target_core_fabric.h
authorNicholas Bellinger <nab@daterainc.com>
Wed, 21 Aug 2013 21:54:54 +0000 (14:54 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 Sep 2013 23:48:35 +0000 (16:48 -0700)
commitb3faa2e87ce04e48f16f3823977329b7c367b3f9
tree796a8722df5ffa66e29936f5cfdf4624e536208a
parentcf6d1f0964fa9db57fc660caf51939d7a03359a1
target/tcm_qla2xxx: Add/use target_reverse_dma_direction() in target_core_fabric.h

Reversing the dma_data_direction for pci_map_sg() friends is useful
for other drivers, so move it from tcm_qla2xxx into inline code
within target_core_fabric.h.

Also drop internal usage of equivlient in tcm_qla2xxx fabric code.

Reported-by: Christoph Hellwig <hch@lst.de>
Cc: Roland Dreier <roland@purestorage.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
drivers/scsi/qla2xxx/tcm_qla2xxx.c
include/target/target_core_fabric.h
This page took 0.032972 seconds and 5 git commands to generate.