[PATCH v7 0/2] Fix bio chain related issues

zhangshida posted 2 patches 1 week, 3 days ago
block/bio.c                 | 6 +++++-
drivers/md/bcache/request.c | 6 +++---
2 files changed, 8 insertions(+), 4 deletions(-)
[PATCH v7 0/2] Fix bio chain related issues
Posted by zhangshida 1 week, 3 days ago
From: Shida Zhang <zhangshida@kylinos.cn>

This series addresses incorrect usage of bio_chain_endio().

Note: Patch 2 depends on changes introduced in patch 1. Therefore, patch
1 is still included in this series even though Coly suggested sending it
directly to the bcache mailing list:
https://lore.kernel.org/all/20251201082611.2703889-1-zhangshida@kylinos.cn/

v7:
- Dropped the patch 3 in v6.

v6:
- Patch 2: Fix the comment format.
https://lore.kernel.org/all/20251207122126.3518192-1-zhangshida@kylinos.cn/

v5:
- Patch 2: Replaced BUG_ON(1) with BUG().
- Patch 3: Rephrased the commit message.
https://lore.kernel.org/all/20251204024748.3052502-1-zhangshida@kylinos.cn/

v4:
- Removed unnecessary cleanups from the series.
https://lore.kernel.org/all/20251201090442.2707362-1-zhangshida@kylinos.cn/

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.
https://lore.kernel.org/all/20251129090122.2457896-1-zhangshida@kylinos.cn/

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 (2):
  bcache: fix improper use of bi_end_io
  block: prohibit calls to bio_chain_endio

 block/bio.c                 | 6 +++++-
 drivers/md/bcache/request.c | 6 +++---
 2 files changed, 8 insertions(+), 4 deletions(-)

-- 
2.34.1
Re: [PATCH v7 0/2] Fix bio chain related issues
Posted by Jens Axboe 1 week, 2 days ago
On Tue, 09 Dec 2025 17:01:55 +0800, zhangshida wrote:
> This series addresses incorrect usage of bio_chain_endio().
> 
> Note: Patch 2 depends on changes introduced in patch 1. Therefore, patch
> 1 is still included in this series even though Coly suggested sending it
> directly to the bcache mailing list:
> https://lore.kernel.org/all/20251201082611.2703889-1-zhangshida@kylinos.cn/
> 
> [...]

Applied, thanks!

[1/2] bcache: fix improper use of bi_end_io
      commit: 53280e398471f0bddbb17b798a63d41264651325
[2/2] block: prohibit calls to bio_chain_endio
      commit: cfdeb588ae1dff5d52da37d2797d0203e8605480

Best regards,
-- 
Jens Axboe