Re: Deadlock patch for kmod

Richard Gooch (Richard.Gooch@atnf.CSIRO.AU)
Thu, 23 Apr 1998 13:13:18 +1000


Kevin Lentin writes:
> On Thu, Apr 23, 1998 at 11:34:10AM +1000, Richard Gooch wrote:
> > Hi, Linus. Below is a small patch that should fix a nasty deadlock
> > with kmod: if a modprobe initiated by kmod does something that
> > triggers another module load request via kmod, we have a deadlock. I
> > hope I've got the process killing semantics correct.
>
> Is this the same problem that prevents the module probve for
> scsi_hostadapter not to work. I've checked and the call is being made, but
> modprobe just never gets called. I presumed it was because the
> initailisation of one module is calling another.

I'm not sure. It will detect the case where a kmod initiated modprobe
causes the loading module to attempt another module load via kmod.
Apply the patch and tell us :-)

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu