public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/9] Fix bio chain related issues
@ 2025-11-29  9:01 zhangshida
  2025-11-29  9:01 ` [PATCH v3 1/9] md: bcache: fix improper use of bi_end_io zhangshida
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: zhangshida @ 2025-11-29  9:01 UTC (permalink / raw)
  To: Johannes.Thumshirn, hch, agruenba, ming.lei, hsiangkao, csander
  Cc: linux-block, linux-bcache, nvdimm, virtualization, ntfs3,
	linux-xfs, linux-kernel, zhangshida, starzhangzsd

From: Shida Zhang <zhangshida@kylinos.cn>

Hi all,

While investigating another problem [mentioned in v1], we identified
some buggy code in the bio chain handling logic. This series addresses
those issues and performs related code cleanup.

Patches 1-3 fix incorrect usage of bio_chain_endio().
Patches 4-9 clean up repetitive code patterns in bio chain handling.

v3:
- Remove the dead code in bio_chain_endio and drop patch 1 in v2 
- Refined the __bio_chain_endio changes with minor modifications (was
  patch 02 in v2).
- Dropped cleanup patches 06 and 12 from v2 due to an incorrect 'prev'
  and 'new' order.

v2:
- Added fix for bcache.
- Added BUG_ON() in bio_chain_endio().
- Enhanced commit messages for each patch
https://lore.kernel.org/all/20251128083219.2332407-1-zhangshida@kylinos.cn/

v1:
https://lore.kernel.org/all/20251121081748.1443507-1-zhangshida@kylinos.cn/

Shida Zhang (9):
  md: bcache: fix improper use of bi_end_io
  block: prohibit calls to bio_chain_endio
  block: prevent race condition on bi_status in __bio_chain_endio
  block: export bio_chain_and_submit
  xfs: Replace the repetitive bio chaining code patterns
  block: Replace the repetitive bio chaining code patterns
  fs/ntfs3: Replace the repetitive bio chaining code patterns
  zram: Replace the repetitive bio chaining code patterns
  nvdimm: Replace the repetitive bio chaining code patterns

 block/bio.c                   | 12 +++++++++---
 drivers/block/zram/zram_drv.c |  3 +--
 drivers/md/bcache/request.c   |  6 +++---
 drivers/nvdimm/nd_virtio.c    |  3 +--
 fs/ntfs3/fsntfs.c             | 12 ++----------
 fs/squashfs/block.c           |  3 +--
 fs/xfs/xfs_bio_io.c           |  3 +--
 fs/xfs/xfs_buf.c              |  3 +--
 fs/xfs/xfs_log.c              |  3 +--
 9 files changed, 20 insertions(+), 28 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-12-06 18:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-29  9:01 [PATCH v3 0/9] Fix bio chain related issues zhangshida
2025-11-29  9:01 ` [PATCH v3 1/9] md: bcache: fix improper use of bi_end_io zhangshida
2025-12-01  5:45   ` Coly Li
2025-12-01  8:29     ` Stephen Zhang
2025-11-29  9:01 ` [PATCH v3 2/9] block: prohibit calls to bio_chain_endio zhangshida
2025-12-01  6:14   ` Christoph Hellwig
2025-11-29  9:01 ` [PATCH v3 3/9] block: prevent race condition on bi_status in __bio_chain_endio zhangshida
2025-12-01  6:14   ` Christoph Hellwig
2025-12-06 18:01   ` kernel test robot
2025-11-29  9:01 ` [PATCH v3 4/9] block: export bio_chain_and_submit zhangshida
2025-12-01  6:15   ` Christoph Hellwig
2025-11-29  9:01 ` [PATCH v3 5/9] xfs: Replace the repetitive bio chaining code patterns zhangshida
2025-11-29  9:01 ` [PATCH v3 6/9] block: " zhangshida
2025-11-29  9:01 ` [PATCH v3 7/9] fs/ntfs3: " zhangshida
2025-11-29  9:01 ` [PATCH v3 8/9] zram: " zhangshida
2025-12-04  9:00   ` Sergey Senozhatsky
2025-11-29  9:01 ` [PATCH v3 9/9] nvdimm: " zhangshida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox