From: tpepper@vato.org
To: linux-kernel@vger.kernel.org
Subject: possible race in end_buffer_io_async()
Date: Fri, 21 Sep 2001 15:46:42 -0700 [thread overview]
Message-ID: <20010921154642.A22662@cb.vato.org> (raw)
I've got a setup here that is triggering the BUG() in UnlockPage() in
end_buffer_io_async(). Looking at the code in that function we noticed that:
When the put_bh() macro calls got added to fs/buffer.c's
end_buffer_io_async() they look like they got in slightly inconsistently.
If the code branches to still_busy it does:
put_bh(bh);
spin_unlock_irqrestore(&page_uptodate_lock, flags);
If the branch is not taken it does:
spin_unlock_irqrestore(&page_uptodate_lock, flags);
put_bh(bh);
I don't know which is correct...There's either a possible race if the put_bh()
should be inside the lock (although since it's decrementing bh_count I doubt
it's what would be causing my attempt to unlock an unlocked page) or else
there are a few instructions that can be moved outside the lock.
I've been hunting around on the web and saw some discussion in July
about async I/O races between Andrea and Linus. Are these resolved?
I'm running 2.4.9 on the machine in question (w/ and w/o kgdb) trying
to figure out what's going on. I'm going to try the latest pre patches
this weekend since the 2.4.10-pre's include a big merge against Andrea.
Tim
reply other threads:[~2001-09-21 22:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20010921154642.A22662@cb.vato.org \
--to=tpepper@vato.org \
--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®