This is a note to let you know that I've just added the patch titled dm thin: fix dangling bio in process_deferred_bios error path to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: dm-thin-fix-dangling-bio-in-process_deferred_bios-error-path.patch and it can be found in the queue-3.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From fe76cd88e654124d1431bb662a0fc6e99ca811a5 Mon Sep 17 00:00:00 2001 From: Mike Snitzer <snitzer@xxxxxxxxxx> Date: Fri, 28 Mar 2014 02:15:02 -0400 Subject: dm thin: fix dangling bio in process_deferred_bios error path From: Mike Snitzer <snitzer@xxxxxxxxxx> commit fe76cd88e654124d1431bb662a0fc6e99ca811a5 upstream. If unable to ensure_next_mapping() we must add the current bio, which was removed from the @bios list via bio_list_pop, back to the deferred_bios list before all the remaining @bios. Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx> Acked-by: Joe Thornber <ejt@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-thin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -1392,9 +1392,9 @@ static void process_deferred_bios(struct */ if (ensure_next_mapping(pool)) { spin_lock_irqsave(&pool->lock, flags); + bio_list_add(&pool->deferred_bios, bio); bio_list_merge(&pool->deferred_bios, &bios); spin_unlock_irqrestore(&pool->lock, flags); - break; } Patches currently in stable-queue which might be from snitzer@xxxxxxxxxx are queue-3.14/dm-cache-prevent-corruption-caused-by-discard_block_size-cache_block_size.patch queue-3.14/dm-transaction-manager-fix-corruption-due-to-non-atomic-transaction-commit.patch queue-3.14/dm-thin-fix-dangling-bio-in-process_deferred_bios-error-path.patch queue-3.14/dm-cache-fix-a-lock-inversion.patch queue-3.14/dm-take-care-to-copy-the-space-map-roots-before-locking-the-superblock.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html