Displaying 7 results from an estimated 7 matches for "jbd2_log_wait_commit".
2023 Apr 21
1
[PATCH] ocfs2: fix missing reset j_num_trans for sync
...per.c
@@ -408,6 +408,9 @@ static int ocfs2_sync_fs(struct super_block *sb, int wait)
if (jbd2_journal_start_commit(osb->journal->j_journal,
&target)) {
+ /* kick commit thread to reset journal->j_num_trans */
+ wake_up(&osb->checkpoint_event);
+
if (wait)
jbd2_log_wait_commit(osb->journal->j_journal,
target);
--
2.39.2
2023 Apr 22
1
[PATCH] ocfs2: fix missing reset j_num_trans for sync
...nc_fs(struct super_block *sb, int wait)
>
> if (jbd2_journal_start_commit(osb->journal->j_journal,
> &target)) {
> + /* kick commit thread to reset journal->j_num_trans */
> + wake_up(&osb->checkpoint_event);
> +
> if (wait)
> jbd2_log_wait_commit(osb->journal->j_journal,
> target);
>
2010 Aug 04
6
[PATCH -v2 0/3] jbd2 scalability patches
This version fixes three bugs in the 2nd patch of this series that
caused kernel BUG when the system was under race. We weren't accounting
with t_oustanding_credits correctly, and there were race conditions
caused by the fact the I had overlooked the fact that
__jbd2_log_wait_for_space() and jbd2_get_transaction() requires
j_state_lock to be write locked.
Theodore Ts'o (3):
jbd2: Use
2023 Apr 30
2
[PATCH 1/2] ocfs2: fix missing reset j_num_trans for sync
...o at suse.com>
---
fs/ocfs2/super.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 0b0e6a132101..bb3fa21e9b47 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -412,6 +412,9 @@ static int ocfs2_sync_fs(struct super_block *sb, int wait)
jbd2_log_wait_commit(osb->journal->j_journal,
target);
}
+ /* kick commit thread to reset journal->j_num_trans */
+ if (atomic_read(&(osb->journal->j_num_trans)))
+ wake_up(&osb->checkpoint_event);
return 0;
}
--
2.39.2
2011 Jan 26
0
[PATCH 2/3] jbd2: Remove barrier feature conditional flag (or: always issue flushes)
...if (ext4_should_writeback_data(inode) &&
- (journal->j_fs_dev != journal->j_dev) &&
- (journal->j_flags & JBD2_BARRIER))
+ (journal->j_fs_dev != journal->j_dev))
blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL,
NULL);
ret = jbd2_log_wait_commit(journal, commit_tid);
- } else if (journal->j_flags & JBD2_BARRIER)
+ } else
blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL);
return ret;
}
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 48ce561..7379829 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3704,...
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
...ct file_operations ocfs2_osb_debug_fops = {
static int ocfs2_sync_fs(struct super_block *sb, int wait)
{
- int status;
+ int status, flush_journal = 0;
tid_t target;
struct ocfs2_super *osb = OCFS2_SB(sb);
@@ -404,6 +410,17 @@ static int ocfs2_sync_fs(struct super_block *sb, int wait)
jbd2_log_wait_commit(OCFS2_SB(sb)->journal->j_journal,
target);
}
+
+ flush_journal = ocfs2_test_osb_flag(osb, OCFS2_OSB_FREEZE_INPROG);
+
+ /* flushes journal when it's during freeze_bdev(). so that we need not
+ * replay journal if this node crashes before thawed.
+ */
+ if (unlikely(flush_jo...
2008 Sep 04
4
[PATCH 0/3] ocfs2: Switch over to JBD2.
ocfs2 currently uses the Journaled Block Device (JBD) for its
journaling. This is a very stable and tested codebase. However, JBD
is limited by architecture to 32bit block numbers. This means an ocfs2
filesystem is limited to 2^32 blocks. With a 4K blocksize, that's 16TB.
People want larger volumes.
Fortunately, there is now JBD2. JBD2 adds 64bit block number support
and some other