Hi Alan, > And besides, in the patch I'm working on it isn't called from either of > those places -- it's called from __scsi_remove_device(). So I'll go > ahead and get rid of scsi_target_reap_usercontext(). > And just for reference, here is my patchset I've created sometime ago which streamlines the sdev and starget lifetime. I think I've tried to send it upstream at one point but never got far with it. Be aware that it's relative to a rather git tree (2.6.22?) so it might not apply properly. But it's mainly to get you an idea of what I've done so far. And would have continued pushing it if real life hadn't interfered ... HTH. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg)