aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-12-19 10:56:55 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:36 -0500
commitb228af0269eaf1af22dbae12a0860f8dbfd63662 (patch)
treeb8605995801a890d9c213e0ef1c3de63a4b4c312 /drivers/s390/scsi/zfcp_aux.c
parentdedbc2b3cb8404c618975bd2811c7605a4ccb51e (diff)
[SCSI] zfcp: Remove adapter list
After the latest changes, the list of FCP devices is only used to lookup the adapter for requests from the actcli tool. Change this to use the lookup function in the cio layer. Now we can remove the adapter list and have one place less to use the global config_lock. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Acked-by: Felix Beck <felix@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index f0f49feaa34f..d7d3148d15e2 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -181,7 +181,6 @@ static int __init zfcp_module_init(void)
181 181
182 zfcp_data.work_queue = create_singlethread_workqueue("zfcp_wq"); 182 zfcp_data.work_queue = create_singlethread_workqueue("zfcp_wq");
183 183
184 INIT_LIST_HEAD(&zfcp_data.adapter_list_head);
185 sema_init(&zfcp_data.config_sema, 1); 184 sema_init(&zfcp_data.config_sema, 1);
186 rwlock_init(&zfcp_data.config_lock); 185 rwlock_init(&zfcp_data.config_lock);
187 186
@@ -527,11 +526,7 @@ int zfcp_adapter_enqueue(struct ccw_device *ccw_device)
527 &zfcp_sysfs_adapter_attrs)) 526 &zfcp_sysfs_adapter_attrs))
528 goto sysfs_failed; 527 goto sysfs_failed;
529 528
530 write_lock_irq(&zfcp_data.config_lock);
531 atomic_clear_mask(ZFCP_STATUS_COMMON_REMOVE, &adapter->status); 529 atomic_clear_mask(ZFCP_STATUS_COMMON_REMOVE, &adapter->status);
532 list_add_tail(&adapter->list, &zfcp_data.adapter_list_head);
533 write_unlock_irq(&zfcp_data.config_lock);
534
535 zfcp_fc_nameserver_init(adapter); 530 zfcp_fc_nameserver_init(adapter);
536 531
537 if (!zfcp_adapter_scsi_register(adapter)) 532 if (!zfcp_adapter_scsi_register(adapter))
@@ -574,14 +569,7 @@ void zfcp_adapter_dequeue(struct zfcp_adapter *adapter)
574 return; 569 return;
575 570
576 zfcp_adapter_debug_unregister(adapter); 571 zfcp_adapter_debug_unregister(adapter);
577
578 /* remove specified adapter data structure from list */
579 write_lock_irq(&zfcp_data.config_lock);
580 list_del(&adapter->list);
581 write_unlock_irq(&zfcp_data.config_lock);
582
583 zfcp_qdio_free(adapter); 572 zfcp_qdio_free(adapter);
584
585 zfcp_free_low_mem_buffers(adapter); 573 zfcp_free_low_mem_buffers(adapter);
586 kfree(adapter->req_list); 574 kfree(adapter->req_list);
587 kfree(adapter->fc_stats); 575 kfree(adapter->fc_stats);