[PATCH] libata: make sure sdev doesn't go away while rescanning
authorTejun Heo <htejun@gmail.com>
Wed, 22 Nov 2006 02:21:31 +0000 (11:21 +0900)
committerTejun Heo <htejun@gmail.com>
Sun, 3 Dec 2006 08:56:24 +0000 (17:56 +0900)
commitf84e7e41e1b88547218a3c3b1eb528005e9afdb4
tree60142d47e5293405701ac44d97722762c7386beb
parenta569a30d301e4dbc0ad67a211292edece2da1146
[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>
drivers/ata/libata-scsi.c