diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-11-24 10:54:00 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:02 -0500 |
commit | de3dc57214a1466034ecc4d4ffb10331d34c09a3 (patch) | |
tree | 63eb490d66f9db2cf032041392fb2f4d5ac4785c /drivers/s390/scsi/zfcp_fc.c | |
parent | f3450c7b917201bb49d67032e9f60d5125675d6a (diff) |
[SCSI] zfcp: Remove global config_mutex
The global config_mutex was required for the serialization of a
configuration change within the zfcp driver. This global locking is
now obsolete and can be removed. The requirement of serializing the
access to a zfcp_adapter reference via a ccw_device is realized wth a
static spinlock.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 6fa1bcbec0a9..3e3e72cc724b 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -622,8 +622,6 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_gpn_ft *gpn_ft, int max_entries) | |||
622 | return -E2BIG; | 622 | return -E2BIG; |
623 | } | 623 | } |
624 | 624 | ||
625 | mutex_lock(&zfcp_data.config_mutex); | ||
626 | |||
627 | /* first entry is the header */ | 625 | /* first entry is the header */ |
628 | for (x = 1; x < max_entries && !last; x++) { | 626 | for (x = 1; x < max_entries && !last; x++) { |
629 | if (x % (ZFCP_GPN_FT_ENTRIES + 1)) | 627 | if (x % (ZFCP_GPN_FT_ENTRIES + 1)) |
@@ -655,7 +653,6 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_gpn_ft *gpn_ft, int max_entries) | |||
655 | list_for_each_entry_safe(port, tmp, &adapter->port_list, list) | 653 | list_for_each_entry_safe(port, tmp, &adapter->port_list, list) |
656 | zfcp_fc_validate_port(port, &remove_lh); | 654 | zfcp_fc_validate_port(port, &remove_lh); |
657 | write_unlock_irqrestore(&adapter->port_list_lock, flags); | 655 | write_unlock_irqrestore(&adapter->port_list_lock, flags); |
658 | mutex_unlock(&zfcp_data.config_mutex); | ||
659 | 656 | ||
660 | list_for_each_entry_safe(port, tmp, &remove_lh, list) { | 657 | list_for_each_entry_safe(port, tmp, &remove_lh, list) { |
661 | zfcp_erp_port_shutdown(port, 0, "fcegpf2", NULL); | 658 | zfcp_erp_port_shutdown(port, 0, "fcegpf2", NULL); |