lkml.org 
[lkml]   [2004]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: What is the BUG() call in ll_rw_blk.c (2.4.26) for?
From
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:1.276 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site