Linux-kernel mailing list archive 1999-23,: problem with md_thread??? missing unlock_kernel()?

# problem with md_thread??? missing unlock_kernel()?

Raj, Ashok (ashok.raj@intel.com)
Tue, 8 Jun 1999 17:43:49 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Steven N. Hirsch: "Re: nfsv3 & 2.2.9 breaks smbfs (was: Re: smbfs broken in 2.2.9)"
- Previous message: Richard Gooch: "Re: Devfs, was Re: Migrating to larger numbers"

Hello.

i was looking at some samples for usage of kernel_thread, and saw that it
calls lock_kernel()
other usages of lock_kernel() always follow with a unlock_kernel() which
seems the right thing to do..

so is drivers/block/md.c missing a unlock_kernel() call before it allows the
creator to continue with an up(&sema).?

Also is there any guidelines on when to use lock_kernel()? guess thats what
iam looking for...

Cheers,
ashokr

Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.
--unknown source

----------------------------------------------------------------------------
-------------
Ashok Raj Phone : (503)-677-6928
NGIO Division Fax : (503)-690-4302
Core Software Group email : ashok.raj@intel.com
M/S : CO3-208
----------------------------------------------------------------------------
-------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Steven N. Hirsch: "Re: nfsv3 & 2.2.9 breaks smbfs (was: Re: smbfs broken in 2.2.9)"
- Previous message: Richard Gooch: "Re: Devfs, was Re: Migrating to larger numbers"