[RFC][PATCH 8/10] I/O context inheritance

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jens.axboe@...>, <agk@...>
Cc: <dm-devel@...>, <linux-kernel@...>
Date: Tuesday, April 22, 2008 - 9:58 am

The crypt module will duplicate a given bio in its own way, so the newly
allocated bio should inherit the the io_context from the original one.

Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp>


--- linux-2.6.25.bio0/drivers/md/dm-crypt.c	2008-04-22 15:48:36.000000000 +0900
+++ linux-2.6.25/drivers/md/dm-crypt.c	2008-04-22 15:53:28.000000000 +0900
@@ -581,6 +581,7 @@ static void clone_init(struct dm_crypt_i
 	clone->bi_end_io  = crypt_endio;
 	clone->bi_bdev    = cc->dev->bdev;
 	clone->bi_rw      = io->base_bio->bi_rw;
+	clone->bi_io_context = ioc_object_link(io->base_bio->bi_io_context);
 	clone->bi_destructor = dm_crypt_bio_destructor;
 }
 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[No subject], , (Tue Apr 22, 9:49 am)
Re: [RFC][PATCH 0/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 10:03 am)
Re: [RFC][PATCH 0/10] I/O context inheritance, Jens Axboe, (Tue Apr 22, 10:54 am)
Re: [dm-devel] Re: [RFC][PATCH 0/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 11:27 pm)
[RFC][PATCH 10/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 10:00 am)
[RFC][PATCH 9/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:59 am)
[RFC][PATCH 8/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:58 am)
[RFC][PATCH 7/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:57 am)
[RFC][PATCH 6/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:55 am)
[RFC][PATCH 5/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:55 am)
[RFC][PATCH 4/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:54 am)
[RFC][PATCH 3/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:53 am)
[RFC][PATCH 2/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:53 am)
[RFC][PATCH 1/10] I/O context inheritance, Hirokazu Takahashi, (Tue Apr 22, 9:51 am)