* What is the BUG() call in ll_rw_blk.c (2.4.26) for?
@ 2004-07-21 18:36 Tom Dickson
2004-07-21 20:27 ` Dave Kleikamp
0 siblings, 1 reply; 2+ messages in thread
From: Tom Dickson @ 2004-07-21 18:36 UTC (permalink / raw)
To: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
void submit_bh(int rw, struct buffer_head * bh)
{
~ int count = bh->b_size >> 9;
~ if (!test_bit(BH_Lock, &bh->b_state))
~ BUG();
Does anyone know what that BUG(); is testing? We're seeing it and want
to track down what we're doing that is causing it.
It's at line 1289 of drivers/block/ll_rw_blk.c
Thanks!
- -Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA/re42dxAfYNwANIRAsM2AKCZK64SB8H3ypeOp6r9srECt8lSEgCfeyya
amEarqisYBF6MocYu6m/Nbo=
=HZZk
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What is the BUG() call in ll_rw_blk.c (2.4.26) for?
2004-07-21 18:36 What is the BUG() call in ll_rw_blk.c (2.4.26) for? Tom Dickson
@ 2004-07-21 20:27 ` Dave Kleikamp
0 siblings, 0 replies; 2+ messages in thread
From: Dave Kleikamp @ 2004-07-21 20:27 UTC (permalink / raw)
To: Tom Dickson; +Cc: linux-kernel
On Wed, 2004-07-21 at 13:36, Tom Dickson wrote:
> void submit_bh(int rw, struct buffer_head * bh)
> {
> ~ int count = bh->b_size >> 9;
>
>
> ~ if (!test_bit(BH_Lock, &bh->b_state))
> ~ BUG();
>
> Does anyone know what that BUG(); is testing? We're seeing it and want
> to track down what we're doing that is causing it.
You must lock the buffer_head before calling submit_bh. If the
buffer_head is not locked, you see the BUG.
Shaggy
--
David Kleikamp
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-21 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-21 18:36 What is the BUG() call in ll_rw_blk.c (2.4.26) for? Tom Dickson
2004-07-21 20:27 ` Dave Kleikamp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.