Displaying 7 results from an estimated 7 matches for "bj_shadow".
2003 Jan 18
2
[patch 2.4] Fix ext3 scheduling storm and lockup
...-scheduling-storm.patch
Anyone who is using tasks which have realtime scheduling policy on ext3
systems should apply this change.
Details:
At the start of do_get_write_access() we have this logic:
repeat:
lock_buffer(jh->bh);
...
unlock_buffer(jh->bh);
...
if (jh->j_list == BJ_Shadow) {
sleep_on_buffer(jh->bh);
goto repeat;
}
The problem is that the unlock_buffer() will wake up anyone who is sleeping
in the sleep_on_buffer().
So if task A is asleep in sleep_on_buffer() and task B now runs
do_get_write_access(), task B will wake task A by accident. Task B will then...
2001 Jul 29
1
2.2.19/0.0.7a: bonnie -> VM problems
...ree" in vmstat never dropped below 1000 with
ext2.
This is how I solved the 2 ext3 rejects
1)
fs/buffer.c
@@ -908,9 +933,13 @@
if (buf->b_count) {
buf->b_count--;
+ if (!buf->b_count &&
+ (buf->b_jlist != BJ_None && buf->b_jlist != BJ_Shadow && buf->b_jlis
t != BJ_Data))
+ J_ASSERT (!test_bit(BH_JWrite, &buf->b_state));
return;
}
printk("VFS: brelse: Trying to free free buffer\n");
+ J_ASSERT(buf->b_count > 0);
*(int *)0 = 0; <== This is RH specific, I chose to put...
2001 Aug 23
2
EXT3 Trouble on 2.4.4
..._lru:1
cpu:0 on_hash:1 b_count:3 b_blocknr:1
b_jbd:1 b_frozen_data:00000000 b_committed_data:00000000
b_transaction:1 b_next_transaction:0 b_cp_transaction:0 b_trans_is_running:0
b_trans_is_comitting:1 b_jcount:0 <0>
journal_write_metadata_buffer() [journal.c:466] file as BJ_Shadow
b_state:0xb1 b_list:BUF_CLEAN b_jlist:BJ_Metadata on_lru:1
cpu:0 on_hash:1 b_count:3 b_blocknr:1
b_jbd:1 b_frozen_data:00000000 b_committed_data:00000000
b_transaction:1 b_next_transaction:0 b_cp_transaction:0 b_trans_is_running:0
b_trans_is_comitting:1 b_jcount:0 <0>...
2001 Jul 13
0
0.0.7a + rh2.2.19: help solve rejects
..."J_ASSERT(buf->b_count > 0);" before or after " *(int *)0 = 0;"?
===== ext3 0.0.7a patch
--- 934,946 ----
if (buf->b_count) {
buf->b_count--;
+ if (!buf->b_count &&
+ (buf->b_jlist != BJ_None && buf->b_jlist != BJ_Shadow && buf->b_jlis
t != BJ_Data))
+ J_ASSERT (!test_bit(BH_JWrite, &buf->b_state));
return;
}
printk("VFS: brelse: Trying to free free buffer\n");
+ J_ASSERT(buf->b_count > 0);
}
===== redhat latest 2.2.19
if (buf->b_count) {...
2001 Apr 19
1
0.0.6b conflict with raid patch
...buffer types */
+#define BJ_None 0 /* Not journaled */
+#define BJ_Data 1 /* Normal data: flush before commit */
+#define BJ_Metadata 2 /* Normal journaled metadata */
+#define BJ_Forget 3 /* Buffer superceded by this transaction */
+#define BJ_IO 4 /* Buffer is for temporary IO use */
+#define BJ_Shadow 5 /* Buffer contents being shadowed to the log */
+#define BJ_LogCtl 6 /* Buffer contains log descriptors */
+#define BJ_Reserved 7 /* Buffer is reserved for access by journal */
+#define BJ_Types 8
/*
* Try to keep the most commonly used fields in single cache lines (16
These two hunks obvi...
2005 Sep 09
7
[PATCH 0/6] jbd cleanup
The following 6 patches cleanup the jbd code and kill about 200 lines.
First of 4 patches can apply to 2.6.13-git8 and 2.6.13-mm2.
The rest of them can apply to 2.6.13-mm2.
fs/jbd/checkpoint.c | 179 +++++++++++--------------------------------
fs/jbd/commit.c | 101 ++++++++++--------------
fs/jbd/journal.c | 11 +-
fs/jbd/revoke.c | 158
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi,
This is the second batch of Ocfs2 patches intended for the merge window. The
1st batch were sent out previously:
http://lkml.org/lkml/2008/12/19/280
The bulk of this set is comprised of Jan Kara's patches to add quota support
to Ocfs2. Many of the quota patches are to generic code, which I carried to
make merging of the Ocfs2 support easier. All of the non-ocfs2 patches
should have