aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2009-03-05 15:45:56 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-13 16:26:21 -0400
commit091e6dbec966d0727ae7fb2d5a8a2b8ace09a02e (patch)
tree4a1ec750a24518b987553b03d3a9605ba9e4f32f /drivers/scsi/iscsi_tcp.c
parentf474a37bc48667595b5653a983b635c95ed82a3b (diff)
[SCSI] iscsi tcp: bidi capable
Mark iscsi_tcp as being capable of bidirectional transfers. The bsg interface checks this bit before attempting any bidirectional commands. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 23808dfe22ba..5a08ca48fb3a 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -813,6 +813,12 @@ static void iscsi_sw_tcp_session_destroy(struct iscsi_cls_session *cls_session)
813 iscsi_host_free(shost); 813 iscsi_host_free(shost);
814} 814}
815 815
816static int iscsi_sw_tcp_slave_alloc(struct scsi_device *sdev)
817{
818 set_bit(QUEUE_FLAG_BIDI, &sdev->request_queue->queue_flags);
819 return 0;
820}
821
816static int iscsi_sw_tcp_slave_configure(struct scsi_device *sdev) 822static int iscsi_sw_tcp_slave_configure(struct scsi_device *sdev)
817{ 823{
818 blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_ANY); 824 blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_ANY);
@@ -833,6 +839,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht = {
833 .eh_device_reset_handler= iscsi_eh_device_reset, 839 .eh_device_reset_handler= iscsi_eh_device_reset,
834 .eh_target_reset_handler= iscsi_eh_target_reset, 840 .eh_target_reset_handler= iscsi_eh_target_reset,
835 .use_clustering = DISABLE_CLUSTERING, 841 .use_clustering = DISABLE_CLUSTERING,
842 .slave_alloc = iscsi_sw_tcp_slave_alloc,
836 .slave_configure = iscsi_sw_tcp_slave_configure, 843 .slave_configure = iscsi_sw_tcp_slave_configure,
837 .proc_name = "iscsi_tcp", 844 .proc_name = "iscsi_tcp",
838 .this_id = -1, 845 .this_id = -1,