scsi: qla2xxx: move fields from qla_hw_data to qla_qpair
- Move chip_reset, enable_class_2 fields from qla_hw_data to qla_qpair to reduce cache thrash for target MQ. - Optimizations to reduce unnecessary memory load for good path io. 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
4b60c82736
commit
7c3f8fd10b
@@ -881,6 +881,7 @@ struct qla_tgt_cmd {
|
||||
struct se_cmd se_cmd;
|
||||
struct fc_port *sess;
|
||||
struct qla_qpair *qpair;
|
||||
uint32_t reset_count;
|
||||
int state;
|
||||
struct work_struct work;
|
||||
/* Sense buffer that will be mapped into outgoing status */
|
||||
@@ -906,7 +907,6 @@ struct qla_tgt_cmd {
|
||||
int offset;
|
||||
u64 unpacked_lun;
|
||||
enum dma_data_direction dma_data_direction;
|
||||
uint32_t reset_count;
|
||||
|
||||
uint16_t loop_id; /* to save extra sess dereferences */
|
||||
struct qla_tgt *tgt; /* to save extra sess dereferences */
|
||||
@@ -980,7 +980,6 @@ struct qla_tgt_prm {
|
||||
int seg_cnt;
|
||||
int req_cnt;
|
||||
uint16_t rq_result;
|
||||
uint16_t scsi_status;
|
||||
int sense_buffer_len;
|
||||
int residual;
|
||||
int add_status_pkt;
|
||||
|
||||
Reference in New Issue
Block a user