[GIT PULL] md-7.2-20260623

Yu Kuai <[email protected]>
Newsgroups gmane.linux.block,gmane.linux.raid
Message-ID <[email protected]>
Hi Jens,

Please consider pulling the following changes into your block-7.2
branch.

This pull request contains:

Bug Fixes:
- Fix raid1 writes_pending and barrier reference leaks on write failures.
  (Abd-Alrhman Masalkhi)
- Fix raid10 writes_pending leak on write request failures.
  (Abd-Alrhman Masalkhi)
- Fix raid10 writes_pending and barrier reference leaks on discard failures.
  (Abd-Alrhman Masalkhi)
- Fix raid1 REQ_NOWAIT handling while waiting for behind writes.
  (Abd-Alrhman Masalkhi)
- Fix raid1 r1_bio leak when a REQ_NOWAIT retry would block.
  (Abd-Alrhman Masalkhi)
- Fix raid1 read-balance head_position data race. (Chen Cheng)
- Fix raid5 stripe batch bm_seq wraparound comparison. (Chen Cheng)
- Fix raid5 stripe batch state snapshot KCSAN noise. (Chen Cheng)
- Fix raid5 R5_Overlap races while breaking stripe batches. (Chen Cheng)

Improvements:
- Add raid5 discard IO accounting. (Yu Kuai)
- Always convert raid5 llbitmap bits for discard. (Yu Kuai)

Cleanups:
- Simplify raid1_write_request() error handling. (Abd-Alrhman Masalkhi)

Thanks,
Kuai

---

The following changes since commit d5b58fbb2fd7ac25fcd7e1c14730f998a90b0322:

  block: respect iov_iter::nofault flag in bio_iov_iter_bounce_write() (2026-06-16 14:48:35 -0600)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/mdraid/linux.git md-7.2

for you to fetch changes up to 55b77337bdd088c77461588e5ec094421b89911b:

  md/raid5: avoid R5_Overlap races while breaking stripe batches (2026-06-23 09:44:11 +0800)

----------------------------------------------------------------
Abd-Alrhman Masalkhi (6):
      md/raid1: fix writes_pending and barrier reference leaks on write failures
      md/raid10: fix writes_pending leak on write request failures
      md/raid10: fix writes_pending and barrier reference leaks on discard failures
      md/raid1: simplify raid1_write_request() error handling
      md/raid1: honor REQ_NOWAIT when waiting for behind writes
      md/raid1: free r1_bio when REQ_NOWAIT is set and read would block on retry

Chen Cheng (4):
      md/raid1: protect head_position for read balance
      md/raid5: let stripe batch bm_seq comparison wrap-safe
      md/raid5: use stripe state snapshot in break_stripe_batch_list()
      md/raid5: avoid R5_Overlap races while breaking stripe batches

Yu Kuai (3):
      md/raid5: account discard IO
      md/raid5: validate discard support at request time
      md/raid5: always convert llbitmap bits for discard

 drivers/md/md-bitmap.c   |   9 +++-
 drivers/md/md-bitmap.h   |   2 +-
 drivers/md/md-llbitmap.c |  13 +++--
 drivers/md/md.c          |   2 +-
 drivers/md/raid1.c       |  99 ++++++++++++++++++++---------------
 drivers/md/raid10.c      |  28 +++++++---
 drivers/md/raid5.c       | 131 +++++++++++++++++++++++++++++------------------
 drivers/md/raid5.h       |   1 +
 8 files changed, 178 insertions(+), 107 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.