aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.c')
-rw-r--r--drivers/s390/scsi/zfcp_fc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c
index 82f148d09968..722f22de8753 100644
--- a/drivers/s390/scsi/zfcp_fc.c
+++ b/drivers/s390/scsi/zfcp_fc.c
@@ -613,7 +613,7 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_gpn_ft *gpn_ft, int max_entries)
613 return -E2BIG; 613 return -E2BIG;
614 } 614 }
615 615
616 down(&zfcp_data.config_sema); 616 mutex_lock(&zfcp_data.config_mutex);
617 617
618 /* first entry is the header */ 618 /* first entry is the header */
619 for (x = 1; x < max_entries && !last; x++) { 619 for (x = 1; x < max_entries && !last; x++) {
@@ -647,7 +647,7 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_gpn_ft *gpn_ft, int max_entries)
647 zfcp_erp_wait(adapter); 647 zfcp_erp_wait(adapter);
648 list_for_each_entry_safe(port, tmp, &adapter->port_list_head, list) 648 list_for_each_entry_safe(port, tmp, &adapter->port_list_head, list)
649 zfcp_fc_validate_port(port); 649 zfcp_fc_validate_port(port);
650 up(&zfcp_data.config_sema); 650 mutex_unlock(&zfcp_data.config_mutex);
651 return ret; 651 return ret;
652} 652}
653 653