From: Tejun Heo Date: Wed, 31 May 2006 09:27:32 +0000 (+0900) Subject: [PATCH] libata-hp-prep: make some ata_device fields persistent X-Git-Tag: v2.6.18-rc1~1079^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72fa4b742b327bd1b07985d79a61c61dbd9fd4e6;p=pandora-kernel.git [PATCH] libata-hp-prep: make some ata_device fields persistent Lifetimes of some fields span over device plugging/unplugging. This patch moves such persistent fields to the top of ata_device and separate them with ATA_DEVICE_CLEAR_OFFSET. Fields above the offset are initialized once during host initializatino while all other fields are cleared before hotplugging. Currently ->ap, devno and part of flags are persistent. Note that flags is partially cleared while holding host_set lock. This is to synchronize with later warm plug implementation which will record hotplug request in dev->flags. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed