Skip to content

misc jbd2 fixes and cleanups

Paul Gortmaker linux-ext4 linux-rt-users 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 8 repliesApplied

Changes in v2 from the cover letter

--assert after state lock is now a standalone/separate commit --add jbd2-only va_args patch for jbd_debug in manner suggested by Ted --fix log_wait_for_space patch to avoid extra mutex lock/unlock --add new patch to fix stale data/dependency in jbd2/Kconfig

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6jbd2/journal_commit_transaction: relocate assert after state lockfs/jbd2/commit.c+1 -11 reply
2/6jbd2/log_wait_for_space: drop checkpoint mutex when waitingfs/jbd2/checkpoint.c+8 -01 reply
3/6jbd2: fix duplicate debug label for phase 2fs/jbd2/commit.c+2 -21 reply
4/6jbd/jbd2: relocate bit_spinlock header to jbd_commoninclude/linux/jbd.h include/linux/jbd2.h include/linux/jbd_common.h+2 -21 reply
5/6jbd2: make jbd_debug that won't split printk statementsfs/jbd2/journal.c include/linux/jbd2.h+22 -90 replies
6/6jbd2: remove debug dependency on debug_fs; update help textfs/jbd2/Kconfig+3 -34 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] misc jbd2 fixes and cleanups

This is a series of commits that came about while researching a problem on a preempt-rt kernel. The RT problem seems tied to the function jbd2_journal_commit_transaction, hence the common theme/location in this series.

That said, it turns out that there is nothing in these commits that is specific to RT, so they were reviewed with the aim to mainline them (and also continue to research the RT problem...)

Once these have been placed in a non-rebased branch with fixed commit IDs, I'll submit ext3/jbd versions of the same where appropriate.

Testing has involved ensuring jbd_debug still works (with the newly documented non-debugfs module param) and also with a largely parallel yocto build running concurrently with a large "rm -rf" (i.e. the test that has been problematic on 3.4.x/3.6.x preempt-rt kernels).

Thanks,
Paul.

---

Changes since v1:
--assert after state lock is now a standalone/separate commit --add jbd2-only va_args patch for jbd_debug in manner suggested by Ted --fix log_wait_for_space patch to avoid extra mutex lock/unlock --add new patch to fix stale data/dependency in jbd2/Kconfig

The following changes since commit 317ddd256b9c24b0d78fa8018f80f1e495481a10:

Linux 3.10-rc5 (2013-06-08 17:41:04 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux.git jbd2-fixes

for you to fetch changes up to 26a48f70423cc58f5fbaf1d8fcd703e8bd455aef:

jbd2: remove debug dependency on debug_fs; update help text (2013-06-11 17:58:42 -0400)

----------------------------------------------------------------
Paul Gortmaker (6):
jbd2/journal_commit_transaction: relocate assert after state lock jbd2/log_wait_for_space: drop checkpoint mutex when waiting
jbd2: fix duplicate debug label for phase 2
jbd/jbd2: relocate bit_spinlock header to jbd_common
jbd2: make jbd_debug that won't split printk statements
jbd2: remove debug dependency on debug_fs; update help text

 fs/jbd2/Kconfig            |  6 +++---
 fs/jbd2/checkpoint.c       |  8 ++++++++
 fs/jbd2/commit.c           |  6 +++---
 fs/jbd2/journal.c          | 17 +++++++++++++++++
 include/linux/jbd.h        |  1 -
 include/linux/jbd2.h       | 15 +++++----------
 include/linux/jbd_common.h |  2 ++
 7 files changed, 38 insertions(+), 17 deletions(-)