On Sun, Feb 16, 2003 at 09:46:08PM +0530, Anjaneyulu wrote: [please teach your editor to wrap lines at 72 characters. it makes your email much easier to read. thank you.] > In one of my test driver, I invoke the read on my test device from a > separate thread and two ioctl commands from two different threads. > The threads runs in infinite loop. When only one of the threads is > created, the behavior is fine. > But when all the three threads' creation is enabled, after some time > the system hangs. What could be the reason for this hang? > Any pointers to this problem? Sounds like a deadlock to me. You need to lock your driver data. See Rusty's "Unreliable Guide To Locking" in Documentation/DocBook/ . Erik -- J.A.K. (Erik) Mouw Email: J.A.K.Mouw@its.tudelft.nl mouw@nl.linux.org
Attachment:
pgp00307.pgp
Description: PGP signature