public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Fix bio chain related issues
@ 2025-12-01  9:04 zhangshida
  2025-12-01  9:04 ` [PATCH v4 1/3] bcache: fix improper use of bi_end_io zhangshida
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: zhangshida @ 2025-12-01  9:04 UTC (permalink / raw)
  To: Johannes.Thumshirn, hch, agruenba, ming.lei, hsiangkao, csander,
	colyli
  Cc: linux-block, linux-bcache, linux-kernel, zhangshida, starzhangzsd

From: Shida Zhang <zhangshida@kylinos.cn>

This series addresses incorrect usage of bio_chain_endio().

Note: Patch 2 must 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/

v4:
- Removed unnecessary cleanups from the series.

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 (3):
  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/bio.c                 | 11 ++++++++---
 drivers/md/bcache/request.c |  6 +++---
 2 files changed, 11 insertions(+), 6 deletions(-)

-- 
2.34.1


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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-01  9:04 [PATCH v4 0/3] Fix bio chain related issues zhangshida
2025-12-01  9:04 ` [PATCH v4 1/3] bcache: fix improper use of bi_end_io zhangshida
2025-12-01  9:04 ` [PATCH v4 2/3] block: prohibit calls to bio_chain_endio zhangshida
2025-12-01  9:34   ` Andreas Gruenbacher
2025-12-04  1:17     ` Stephen Zhang
2025-12-01  9:04 ` [PATCH v4 3/3] block: prevent race condition on bi_status in __bio_chain_endio zhangshida
2025-12-01 10:22   ` Andreas Gruenbacher
2025-12-01 11:25     ` Christoph Hellwig
2025-12-01 13:07       ` Andreas Gruenbacher
2025-12-02  5:48         ` Christoph Hellwig
2025-12-02 21:15           ` Andreas Gruenbacher
2025-12-03  1:51             ` Stephen Zhang
2025-12-03  3:09               ` Stephen Zhang
2025-12-03  4:34                 ` Caleb Sander Mateos
2025-12-03  6:14                 ` Christoph Hellwig

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