]> err.no Git - linux-2.6/commit
[SCSI] fix scsi_reap_target() device_del from atomic context
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 16 Dec 2005 04:01:43 +0000 (20:01 -0800)
committerJames Bottomley <jejb@mulgrave.(none)>
Sat, 17 Dec 2005 16:48:08 +0000 (10:48 -0600)
commit863a930a40eb7f2d18534c2c166b22582f5c6cfd
treed2f74a0351a09e184e124fd6ecf16e02ab768a0b
parent42e33148df38c60b99d984b76b302c64397ebe4c
[SCSI] fix scsi_reap_target() device_del from atomic context

scsi_reap_target() was desgined to be called from any context.
However it must do a device_del() of the target device, which may only
be called from user context.  Thus we have to reimplement
scsi_reap_target() via a workqueue.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c