From: "Peter T. Breuer" <ptb@it.uc3m.es>
To: Jens Axboe <axboe@suse.de>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: what's the semaphore in requests for?
Date: Mon, 30 Jul 2001 16:14:53 +0200 (CEST) [thread overview]
Message-ID: <200107301414.QAA01744@nbd.it.uc3m.es> (raw)
In-Reply-To: <20010730102418.G1981@suse.de> "from Jens Axboe at Jul 30, 2001 10:24:18 am"
"Jens Axboe wrote:"
> http://asimov.lib.uaa.alaska.edu/linux-kernel/archive/2001-Week-30/0165.html
You say there [of the semaphore field in requests]:
Drivers can use it if they want completion to be signalled for a request
(see end_that_request_last). However, see 2.4.7 where it's not ->waiting
and the interface changed.
end_that_request_ up's the semaphore if it's nonnull, but for that to make
sense, someone must down it. Nobody does (in ll_rw_blk.c), So I assume it's
entirely for my use in controlling access to the request.
So I don't believe it's involved in my problem.
> > 2 processors + 1 userspace helper daemon on device = no bug
> > 2 processors + 2 userspace helper daemon on device = bug (lockup)
> > 1 processors + 1 userspace helper daemon on device = no bug
> > 1 processors + 2 userspace helper daemon on device = no bug
> And I'll restate here what I said then too -- SHOW THE CODE! Or send me
> a crystal ball and I'll be happy to solve your races for you.
Crystal balls would be nice. I'll see if I can get it down to something
sendable. I can confirm the above results since I tried them again. After
about 1.2GB of transfers, one cpu ended up not listening to NMI and the
other was stuck in a spinlock (__down_writelock_failed, from memory),
having called my request fn from the generic_unplug_device function,
which in turn called a write spinlock on the device private request
queue. The spinlocks aren't around sections of code that can sleep.
Peter
next prev parent reply other threads:[~2001-07-30 14:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-28 22:34 what's the semaphore in requests for? Peter T. Breuer
2001-07-30 8:24 ` Jens Axboe
2001-07-30 14:14 ` Peter T. Breuer [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-03 23:37 Peter T. Breuer
2001-07-31 18:45 Peter T. Breuer
2001-07-23 23:39 Peter T. Breuer
2001-07-24 7:44 ` Jens Axboe
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=200107301414.QAA01744@nbd.it.uc3m.es \
--to=ptb@it.uc3m.es \
--cc=axboe@suse.de \
--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