From: James Roper <u3205097@anu.edu.au>
To: linux-kernel@vger.kernel.org
Subject: Kernel semaphores
Date: Tue, 14 Sep 2004 15:25:24 +1000 [thread overview]
Message-ID: <200409141525.24296.u3205097@anu.edu.au> (raw)
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
next reply other threads:[~2004-09-14 5:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-14 5:25 James Roper [this message]
[not found] <mailman.1095139743.24686.linux-kernel2news@redhat.com>
2004-09-14 16:05 ` Pete Zaitcev
2004-09-14 17:03 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200409141525.24296.u3205097@anu.edu.au \
--to=u3205097@anu.edu.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®