Re: [PATCH] Add module_kernel_thread for threads that live in modules.

Andrey Klochko (andrey@chenas.mae.cornell.edu)
Mon, 9 Jun 2003 12:20:05 -0400


Thanks for expalining that.

Andrey

On Sat, Jun 07, 2003 at 03:33:26PM +1000, Neil Brown wrote:
> On Thursday June 5, andrey@morgon.mae.cornell.edu wrote:
> > >
> > > - /* Release module */
> > > - unlock_kernel();
> >
> > You've locked the kernel and didn't unlock it.
> >
>
> This was just before the thread exited. When a thread exits it
> automatically drops the kernel lock anyway. It seemed un-necessary to
> explicitly unlock it aswell.
>
> NeilBrown

-- 
-------------------------------------------------------------
Andrey Klochko
System Administrator
Sibley School of Mechanical and Aerospace Engineering
288 Grumman Hall
Cornell University
Ithaca, NY 14853

e-mail: andrey@mae.cornell.edu phone: 607-255-0360 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/