@@ -929,8 +929,8 @@ struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long old_req_id,
929
929
struct qdio_buffer_element * sbale ;
930
930
struct zfcp_fsf_req * req = NULL ;
931
931
932
- spin_lock (& adapter -> req_q_lock );
933
- if (! zfcp_fsf_sbal_available (adapter ))
932
+ spin_lock_bh (& adapter -> req_q_lock );
933
+ if (zfcp_fsf_req_sbal_get (adapter ))
934
934
goto out ;
935
935
req = zfcp_fsf_req_create (adapter , FSF_QTCB_ABORT_FCP_CMND ,
936
936
req_flags , adapter -> pool .fsf_req_abort );
@@ -961,7 +961,7 @@ struct zfcp_fsf_req *zfcp_fsf_abort_fcp_command(unsigned long old_req_id,
961
961
zfcp_fsf_req_free (req );
962
962
req = NULL ;
963
963
out :
964
- spin_unlock (& adapter -> req_q_lock );
964
+ spin_unlock_bh (& adapter -> req_q_lock );
965
965
return req ;
966
966
}
967
967
@@ -1225,7 +1225,7 @@ int zfcp_fsf_exchange_config_data(struct zfcp_erp_action *erp_action)
1225
1225
int retval = - EIO ;
1226
1226
1227
1227
spin_lock_bh (& adapter -> req_q_lock );
1228
- if (! zfcp_fsf_sbal_available (adapter ))
1228
+ if (zfcp_fsf_req_sbal_get (adapter ))
1229
1229
goto out ;
1230
1230
req = zfcp_fsf_req_create (adapter ,
1231
1231
FSF_QTCB_EXCHANGE_CONFIG_DATA ,
@@ -1321,7 +1321,7 @@ int zfcp_fsf_exchange_port_data(struct zfcp_erp_action *erp_action)
1321
1321
return - EOPNOTSUPP ;
1322
1322
1323
1323
spin_lock_bh (& adapter -> req_q_lock );
1324
- if (! zfcp_fsf_sbal_available (adapter ))
1324
+ if (zfcp_fsf_req_sbal_get (adapter ))
1325
1325
goto out ;
1326
1326
req = zfcp_fsf_req_create (adapter , FSF_QTCB_EXCHANGE_PORT_DATA ,
1327
1327
ZFCP_REQ_AUTO_CLEANUP ,
@@ -1367,7 +1367,7 @@ int zfcp_fsf_exchange_port_data_sync(struct zfcp_adapter *adapter,
1367
1367
return - EOPNOTSUPP ;
1368
1368
1369
1369
spin_lock_bh (& adapter -> req_q_lock );
1370
- if (! zfcp_fsf_sbal_available (adapter ))
1370
+ if (zfcp_fsf_req_sbal_get (adapter ))
1371
1371
goto out ;
1372
1372
1373
1373
req = zfcp_fsf_req_create (adapter , FSF_QTCB_EXCHANGE_PORT_DATA , 0 ,
@@ -2452,8 +2452,8 @@ struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_adapter *adapter,
2452
2452
ZFCP_STATUS_COMMON_UNBLOCKED )))
2453
2453
return NULL ;
2454
2454
2455
- spin_lock (& adapter -> req_q_lock );
2456
- if (! zfcp_fsf_sbal_available (adapter ))
2455
+ spin_lock_bh (& adapter -> req_q_lock );
2456
+ if (zfcp_fsf_req_sbal_get (adapter ))
2457
2457
goto out ;
2458
2458
req = zfcp_fsf_req_create (adapter , FSF_QTCB_FCP_CMND , req_flags ,
2459
2459
adapter -> pool .fsf_req_scsi );
@@ -2487,7 +2487,7 @@ struct zfcp_fsf_req *zfcp_fsf_send_fcp_ctm(struct zfcp_adapter *adapter,
2487
2487
zfcp_fsf_req_free (req );
2488
2488
req = NULL ;
2489
2489
out :
2490
- spin_unlock (& adapter -> req_q_lock );
2490
+ spin_unlock_bh (& adapter -> req_q_lock );
2491
2491
return req ;
2492
2492
}
2493
2493
0 commit comments