zfcp: consistently use function name space prefix
Subsystems (2)
PATCH 16/25 zfcp: consistently use function name space prefix
I've been mixing upzfcp_task_mgmt_function() [SCSI] andzfcp_fsf_fcp_task_mgmt() [FSF]
so often lately that I wanted to fix this.
SCSI changes complement v2.6.27 commit f76af7d7e363 ("[SCSI] zfcp: Cleanup of code in zfcp_scsi.c").
While at it, also fixup the other inconsistencies elsewhere.
ERP changes complement v2.6.27 commit 287ac01acf22 ("[SCSI] zfcp: Cleanup code in zfcp_erp.c") which introduced status_change_set().
FC changes complement v2.6.32 commit 6f53a2d2ecae ("[SCSI] zfcp: Apply common naming conventions to zfcp_fc"). by renaming a leftover introduced with v2.6.27 commit cc8c282963bd ("[SCSI] zfcp: Automatically attach remote ports").
FSF changes fixup v2.6.32 commit a4623c467ff7 ("[SCSI] zfcp: Improve request allocation through mempools"). which replaced zfcp_fsf_alloc_qtcb() introduced with v2.6.27 commit c41f8cbddd4e ("[SCSI] zfcp: zfcp_fsf cleanup.").
SCSI fc_host statistics were introduced with v2.6.16 commit f6cd94b126aa ("[SCSI] zfcp: transport class adaptations").
SCSI fc_host port_state was introduced with v2.6.27 commit 85a82392fe6f ("[SCSI] zfcp: Add port_state attribute to sysfs").
SCSI rport setter for dev_loss_tmo was introduced with v2.6.18 commit 338151e06608 ("[SCSI] zfcp: make use of fc_remote_port_delete when target port is unavailable").
--- drivers/s390/scsi/zfcp_erp.c | 11 +++++++---- drivers/s390/scsi/zfcp_fc.c | 4 ++-- drivers/s390/scsi/zfcp_fsf.c | 7 ++++--- drivers/s390/scsi/zfcp_scsi.c | 46 ++++++++++++++++++++++--------------------- 4 files changed, 37 insertions(+), 31 deletions(-)
drivers/s390/scsi/zfcp_erp.c +7 -4
@@ -551,21 +551,23 @@ void zfcp_erp_lun_shutdown_wait(struct scsi_device *sdev, char *id)zfcp_erp_wait (adapter); } -static int status_change_set (unsigned long mask,atomic_t *status) +static int zfcp_erp_status_change_set (unsigned long mask,atomic_t *status) {return (atomic_read (status) ^ mask) & mask; }static void zfcp_erp_adapter_unblock (struct zfcp_adapter *adapter) { -if (status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , &adapter->status)) +if (zfcp_erp_status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , + &adapter->status))zfcp_dbf_rec_run ("eraubl1" , &adapter->erp_action);atomic_or (ZFCP_STATUS_COMMON_UNBLOCKED , &adapter->status); }static void zfcp_erp_port_unblock (struct zfcp_port *port) { -if (status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , &port->status)) +if (zfcp_erp_status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , + &port->status))zfcp_dbf_rec_run ("erpubl1" , &port->erp_action);atomic_or (ZFCP_STATUS_COMMON_UNBLOCKED , &port->status); }
@@ -574,7 +576,8 @@ static void zfcp_erp_lun_unblock(struct scsi_device *sdev) {struct zfcp_scsi_dev *zfcp_sdev =sdev_to_zfcp (sdev); -if (status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , &zfcp_sdev->status)) +if (zfcp_erp_status_change_set (ZFCP_STATUS_COMMON_UNBLOCKED , + &zfcp_sdev->status))zfcp_dbf_rec_run ("erlubl1" , &sdev_to_zfcp (sdev)->erp_action);atomic_or (ZFCP_STATUS_COMMON_UNBLOCKED , &zfcp_sdev->status); }
drivers/s390/scsi/zfcp_fc.c +2 -2
@@ -598,7 +598,7 @@ void zfcp_fc_test_link(struct zfcp_port *port)put_device (&port->dev); } -static struct zfcp_fc_req *zfcp_alloc_sg_env (int buf_num) +static struct zfcp_fc_req *zfcp_fc_alloc_sg_env (int buf_num) {struct zfcp_fc_req *fc_req;
@@ -750,7 +750,7 @@ void zfcp_fc_scan_ports(struct work_struct *work)if (zfcp_fc_wka_port_get (&adapter->gs->ds))return ; - fc_req =zfcp_alloc_sg_env (buf_num); + fc_req =zfcp_fc_alloc_sg_env (buf_num);if (!fc_req) goto out;
drivers/s390/scsi/zfcp_fsf.c +4 -3
@@ -662,7 +662,7 @@ static struct zfcp_fsf_req *zfcp_fsf_alloc(mempool_t *pool)return req; } -static struct fsf_qtcb *zfcp_qtcb_alloc (mempool_t *pool) +static struct fsf_qtcb *zfcp_fsf_qtcb_alloc (mempool_t *pool) {struct fsf_qtcb *qtcb;
@@ -701,9 +701,10 @@ static struct zfcp_fsf_req *zfcp_fsf_req_create(struct zfcp_qdio *qdio,if (likely (fsf_cmd !=FSF_QTCB_UNSOLICITED_STATUS )) {if (likely (pool)) - req->qtcb =zfcp_qtcb_alloc (adapter->pool.qtcb_pool); + req->qtcb =zfcp_fsf_qtcb_alloc ( + adapter->pool.qtcb_pool);else - req->qtcb =zfcp_qtcb_alloc (NULL ); + req->qtcb =zfcp_fsf_qtcb_alloc (NULL );if (unlikely (!req->qtcb)) {zfcp_fsf_req_free (req);
drivers/s390/scsi/zfcp_scsi.c +24 -22
128 lines not on this page · raw message
Signature · 1 line
2.16.3