File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3880,6 +3880,7 @@ struct qla_hw_data {
3880
3880
uint32_t scm_supported_f :1 ;
3881
3881
/* Enabled in Driver */
3882
3882
uint32_t scm_enabled :1 ;
3883
+ uint32_t max_req_queue_warned :1 ;
3883
3884
} flags ;
3884
3885
3885
3886
uint16_t max_exchg ;
Original file line number Diff line number Diff line change @@ -687,7 +687,15 @@ int qla_nvme_register_hba(struct scsi_qla_host *vha)
687
687
tmpl = & qla_nvme_fc_transport ;
688
688
689
689
WARN_ON (vha -> nvme_local_port );
690
- WARN_ON (ha -> max_req_queues < 3 );
690
+
691
+ if (ha -> max_req_queues < 3 ) {
692
+ if (!ha -> flags .max_req_queue_warned )
693
+ ql_log (ql_log_info , vha , 0x2120 ,
694
+ "%s: Disabling FC-NVME due to lack of free queue pairs (%d).\n" ,
695
+ __func__ , ha -> max_req_queues );
696
+ ha -> flags .max_req_queue_warned = 1 ;
697
+ return ret ;
698
+ }
691
699
692
700
qla_nvme_fc_transport .max_hw_queues =
693
701
min ((uint8_t )(qla_nvme_fc_transport .max_hw_queues ),
You can’t perform that action at this time.
0 commit comments