diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2005-05-17 18:07:34 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-05-20 15:54:42 -0500 |
commit | c7525233d2df39b95552f6f49c6b390a9c4d2e80 (patch) | |
tree | 6a2336435ea1a2bf1ae6b445d6b1109e0599a2a3 /lib | |
parent | 8e45ebcc661069bfb002c56dd942aedf43ba9239 (diff) | |
download | blackbird-op-linux-c7525233d2df39b95552f6f49c6b390a9c4d2e80.tar.gz blackbird-op-linux-c7525233d2df39b95552f6f49c6b390a9c4d2e80.zip |
[SCSI] aic7xxx: make correct use of slave_alloc/destroy and remove the per device timer
The allocation of all of our components should be done in slave alloc.
Currently it's rather fancifully refcounted in the queuecommand
callback. This patch moves allocation and destroy to their correct
places in slave_alloc/slave_destory. Now we can guarantee that
everywhere a device is requested, it's actually been allocated, so don't
check for this anymore.
Additionally, the per device busy timer was the only source of potential
use after free. It's been deleted because Linux does the correct thing
with busy returns, so there's no need to implement a separate timer in
the driver.
Finally, implement code that forces all the device parameters to zero
(i.e. async and narrow) in the slave alloc, inform the spi class of the
bios recorded maximums and wait until slave configure before trying
anything more adventurous.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions