scsi: qla2xxx: Enable Target Multi Queue
Enable Multi Queue for Target mode. At Initiator LUN scan time, each LUN is assign to a QPair. Each QPair is affinitize to certain CPU. When new cmd arrives from the wire, the lunid is used to search for qpair. The qpair's affinitized cpuid will be used to queue up the work element. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
82de802ad4
commit
e326d22af9
@@ -3245,7 +3245,7 @@ struct req_que {
|
||||
struct qla_qpair {
|
||||
spinlock_t qp_lock;
|
||||
atomic_t ref_count;
|
||||
|
||||
uint32_t lun_cnt;
|
||||
/*
|
||||
* For qpair 0, qp_lock_ptr will point at hardware_lock due to
|
||||
* legacy code. For other Qpair(s), it will point at qp_lock.
|
||||
@@ -3275,6 +3275,7 @@ struct qla_qpair {
|
||||
struct qla_hw_data *hw;
|
||||
struct work_struct q_work;
|
||||
struct list_head qp_list_elem; /* vha->qp_list */
|
||||
struct list_head hints_list;
|
||||
uint16_t cpuid;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user