mbox series

[v2,0/5] jbd2: Add errseq to detect writeback

Message ID 20231213013224.2100050-1-chengzhihao1@huawei.com
Headers show
Series jbd2: Add errseq to detect writeback | expand

Message

Zhihao Cheng Dec. 13, 2023, 1:32 a.m. UTC
According to discussions in [1], this patchset adds errseq in journal to
enable JDB2 detecting meatadata writeback error of fs dev. Then, orginal
checking mechanism could be removed.

[1] https://lore.kernel.org/all/20230908124317.2955345-1-chengzhihao1@huawei.com/T/

v1->v2:
  Fix some misspelling words.
  Patch 1: "fallen on" -> "written to"
  Patch 4: "can detects" -> "can detect"

Zhihao Cheng (5):
  jbd2: Add errseq to detect client fs's bdev writeback error
  jbd2: Replace journal state flag by checking errseq
  jbd2: Remove unused 'JBD2_CHECKPOINT_IO_ERROR' and 'j_atomic_flags'
  jbd2: Abort journal when detecting metadata writeback error of fs dev
  ext4: Move ext4_check_bdev_write_error() into nojournal mode

 fs/ext4/ext4_jbd2.c   |  5 ++---
 fs/jbd2/checkpoint.c  | 11 -----------
 fs/jbd2/journal.c     | 11 ++++++-----
 fs/jbd2/recovery.c    |  7 +------
 fs/jbd2/transaction.c | 14 ++++++++++++++
 include/linux/jbd2.h  | 37 ++++++++++++++++++++++++++-----------
 6 files changed, 49 insertions(+), 36 deletions(-)

Comments

Theodore Ts'o Jan. 9, 2024, 2:53 a.m. UTC | #1
On Wed, 13 Dec 2023 09:32:19 +0800, Zhihao Cheng wrote:
> According to discussions in [1], this patchset adds errseq in journal to
> enable JDB2 detecting meatadata writeback error of fs dev. Then, orginal
> checking mechanism could be removed.
> 
> [1] https://lore.kernel.org/all/20230908124317.2955345-1-chengzhihao1@huawei.com/T/
> 
> v1->v2:
>   Fix some misspelling words.
>   Patch 1: "fallen on" -> "written to"
>   Patch 4: "can detects" -> "can detect"
> 
> [...]

Applied, thanks!

[1/5] jbd2: Add errseq to detect client fs's bdev writeback error
      commit: 990b6b5b13b7993b7f44740c0add3119d407ccbf
[2/5] jbd2: Replace journal state flag by checking errseq
      commit: 62ec1707cb071c95706d1bab85fbee8d5a3d2f24
[3/5] jbd2: Remove unused 'JBD2_CHECKPOINT_IO_ERROR' and 'j_atomic_flags'
      commit: 8a4fd33d879fb303b207f06ea6340d73f698c4ed
[4/5] jbd2: Abort journal when detecting metadata writeback error of fs dev
      commit: b4e73e61268903d82dacff2bc6f4bb766c6ed555
[5/5] ext4: Move ext4_check_bdev_write_error() into nojournal mode
      commit: ada3fb86a3f3aea40903d5ad9aeec708dc049b8b

Best regards,