mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Kernel semaphores
@ 2004-09-14  5:25 James Roper
  0 siblings, 0 replies; 3+ messages in thread
From: James Roper @ 2004-09-14  5:25 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm very new to kernel development.  I'm implementing a mechanism in the CIFS 
VFS client to ensure that the maximum number of outstanding requests is not 
exceeded.  To do this I'm using a semaphore.  It works for a while, but 
eventually (while doing some torture tests that send/receive many > 10MB 
files simultaneously by multiple threads) my computer freezes.  The logs show 
the message "bad: scheduling while atomic!" followed by a trace.  I'm 
guessing this is where the problem is.  So my question is, if my semaphore is 
causing that error, what possible things could be triggering it?  Could it be 
an interrupt while waiting to acquire the semaphore?  I'm using the 
down_interruptible() to acquire and up() to release.

Thanks,

James

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.1095139743.24686.linux-kernel2news@redhat.com>]

end of thread, other threads:[~2004-09-14 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14  5:25 Kernel semaphores James Roper
     [not found] <mailman.1095139743.24686.linux-kernel2news@redhat.com>
2004-09-14 16:05 ` Pete Zaitcev
2004-09-14 17:03   ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®