[SCSI] fix scsi process problems and clean up the target reap issues
authorJames Bottomley <James.Bottomley@steeleye.com>
Thu, 23 Feb 2006 20:27:18 +0000 (14:27 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 28 Feb 2006 05:37:45 +0000 (23:37 -0600)
commitffedb4522571ac170f941678d138a31bc0884ab4
tree996572da6cecf4295c730b13c959d5d19836a8c5
parent1fa44ecad2b86475e038aed81b0bf333fa484f8b
[SCSI] fix scsi process problems and clean up the target reap issues

In order to use the new execute_in_process_context() API, you have to
provide it with the work storage, which I do in SCSI in scsi_device and
scsi_target, but which also means that we can no longer queue up the
target reaps, so instead I moved the target to a state model which
allows target_alloc to detect if we've received a dying target and wait
for it to be gone.  Hopefully, this should also solve the target
namespace race.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_sysfs.c
include/scsi/scsi.h
include/scsi/scsi_device.h