The patch titled dm io: delay dec_count has been added to the -mm tree. Its filename is dm-io-delay-dec_count.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: dm io: delay dec_count From: Heinz Mauelshagen <hjm@xxxxxxxxxx> Delay decrementing the 'struct io' reference count until after the bio has been freed so that a bio destructor function may reference it. Required by a later patch. Signed-off-by: Heinz Mauelshagen <hjm@xxxxxxxxxx> Signed-off-by: Alasdair G Kergon <agk@xxxxxxxxxx> Cc: Milan Broz <mbroz@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-io.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff -puN drivers/md/dm-io.c~dm-io-delay-dec_count drivers/md/dm-io.c --- a/drivers/md/dm-io.c~dm-io-delay-dec_count +++ a/drivers/md/dm-io.c @@ -126,7 +126,8 @@ static void dec_count(struct io *io, uns static int endio(struct bio *bio, unsigned int done, int error) { - struct io *io = (struct io *) bio->bi_private; + struct io *io; + unsigned region; /* keep going until we've finished */ if (bio->bi_size) @@ -135,10 +136,17 @@ static int endio(struct bio *bio, unsign if (error && bio_data_dir(bio) == READ) zero_fill_bio(bio); - dec_count(io, bio_get_region(bio), error); + /* + * The bio destructor in bio_put() may use the io object. + */ + io = bio->bi_private; + region = bio_get_region(bio); + bio->bi_max_vecs++; bio_put(bio); + dec_count(io, region, error); + return 0; } _ Patches currently in -mm which might be from hjm@xxxxxxxxxx are dm-io-delay-dec_count.patch dm-io-prepare-for-new-interface.patch dm-io-new-interface.patch dm-kcopyd-update-dm-io-interface.patch dm-exception-store-update-dm-io-interface.patch dm-bio-list-helpers.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html