public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: Correct comment on bio_alloc_clone()
@ 2026-02-20 14:32 John Garry
  2026-02-20 15:10 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: John Garry @ 2026-02-20 14:32 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, hch, John Garry

Correct the comment that the source bio must not be freed before the clone.

Signed-off-by: John Garry <john.g.garry@oracle.com>

diff --git a/block/bio.c b/block/bio.c
index 8203bb7455a9f..9d9191fe19b50 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -900,7 +900,7 @@ static int __bio_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp)
  * Allocate a new bio that is a clone of @bio_src. The caller owns the returned
  * bio, but not the actual data it points to.
  *
- * The caller must ensure that the return bio is not freed before @bio_src.
+ * The caller must ensure that @bio_src is not freed before the returned bio.
  */
 struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src,
 		gfp_t gfp, struct bio_set *bs)
-- 
2.43.5


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

end of thread, other threads:[~2026-02-20 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 14:32 [PATCH] block: Correct comment on bio_alloc_clone() John Garry
2026-02-20 15:10 ` Christoph Hellwig
2026-02-20 15:36   ` John Garry
2026-02-20 15:43     ` Christoph Hellwig
2026-02-20 15:55       ` John Garry
2026-02-20 15:57         ` Christoph Hellwig

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