dm thin: fix dangling bio in process_deferred_bios error path
authorMike Snitzer <snitzer@redhat.com>
Fri, 28 Mar 2014 06:15:02 +0000 (02:15 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 28 Mar 2014 18:37:02 +0000 (14:37 -0400)
commitfe76cd88e654124d1431bb662a0fc6e99ca811a5
tree27c8b0ae2d86c8ed1acf1ce2df8621ec6b7807f1
parenta356e42620271deb5afb6570606154d160783bba
dm thin: fix dangling bio in process_deferred_bios error path

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@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-thin.c