scsi: provide a generic change_queue_type method
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Oct 2014 12:39:55 +0000 (14:39 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:19:39 +0000 (11:19 +0100)
commita62182f338b39a22035531c6afc0a8d2928b1df2
tree57ca6cea82a09d2655daf5c161024c5015373646
parent1d5203284d8acbdfdf9b478d434450b34f338f28
scsi: provide a generic change_queue_type method

Most drivers use exactly the same implementation, so provide it as a
library function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
19 files changed:
drivers/infiniband/ulp/srp/ib_srp.c
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/esas2r/esas2r.h
drivers/scsi/esas2r/esas2r_main.c
drivers/scsi/fcoe/fcoe.c
drivers/scsi/fnic/fnic_main.c
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ipr.c
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c
drivers/scsi/pmcraid.c
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/scsi.c
drivers/scsi/scsi_debug.c
drivers/target/loopback/tcm_loop.c
include/scsi/libfc.h
include/scsi/scsi_tcq.h