[SCSI] fix scsi process problems and clean up the target reap issues
[linux-2.6.git] / drivers / scsi / scsi_sysfs.c
index 902a5def8e62102591e1b2e4657eb560d258efc2..89055494dfee3f86a2b6ae3d7db82eab42c8cff9 100644 (file)
@@ -256,7 +256,9 @@ static void scsi_device_dev_release_usercontext(void *data)
 
 static void scsi_device_dev_release(struct device *dev)
 {
-       scsi_execute_in_process_context(scsi_device_dev_release_usercontext,    dev);
+       struct scsi_device *sdp = to_scsi_device(dev);
+       execute_in_process_context(scsi_device_dev_release_usercontext, dev,
+                                  &sdp->ew);
 }
 
 static struct class sdev_class = {