From: Christof Schmitt Date: Tue, 18 Aug 2009 13:43:27 +0000 (+0200) Subject: [SCSI] zfcp: Defer resource allocation to first ccw_set_online call X-Git-Tag: v2.6.32-rc1~689^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=143bb6bfe36d20618d8bf667915fe14d14b8ae2f;p=pandora-kernel.git [SCSI] zfcp: Defer resource allocation to first ccw_set_online call So far, zfcp allocated all resources required for FCP adapters/subchannels when the device was discovered in the ccw_probe callback. If there are lots of unused FCP subchannels attached to a system, this is a waste of resources. To alleviate this, defer the resource allocation to the first call to ccw_set_online. To avoid disruptions during possible following calls to ccw_set_offline and then ccw_set_online, keep the adapter resources until the device is finally being removed via ccw_remove. While doing this, also manage the zfcp erp thread together with all other adapter resources in zfcp_adapter_enqueue/dequeue. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- Reading git-diff-tree failed