[PATCH] libata: make sure sdev doesn't go away while rescanning

ata_scsi_dev_rescan() doesn't synchronize against SCSI device detach
and the target sdev might go away in the middle.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
This commit is contained in:
Tejun Heo 2006-11-22 11:21:31 +09:00
commit f84e7e41e1