On Mon, Aug 22, 2005 at 09:03:03PM -0500, James Bottomley wrote: > On Mon, 2005-08-22 at 17:39 -0700, Patrick Mansfield wrote: > > But, we have to pass in a struct kref, to affect put/get_device, correct? > > Correct. Let me post the code mods to drivers/base/core.c so you can > see how it works. OK ... I thought that was what you intended but could not quite see it. > Incidentally, it now passes your dev_child test without causing a slab > corruption. Great, tested with your two patches applied on recent 2.6.13-rc6-git tree, and modprobe -r qla2300 now works fine. -- Patrick Mansfield - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html