summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-10-19 16:23:09 +0400
committerMike Snitzer <snitzer@redhat.com>2014-11-10 23:25:28 +0300
commit9d094eebd7fd3d3432a974f46490c32cae35edfe (patch)
treea47cf98c1edca5ce668b4be57c22cbaca82849ed /drivers/md
parentac4c3f34a9af63092b3fbfafe34c3e966fbd96c5 (diff)
downloadlinux-9d094eebd7fd3d3432a974f46490c32cae35edfe.tar.xz
dm thin: optimize retry_bios_on_resume
Eliminate redundant should_error_unserviceable_bio check and error loop. Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-thin.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index b9d25026ab84..575e3ed723cc 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -1263,13 +1263,8 @@ static void retry_bios_on_resume(struct pool *pool, struct dm_bio_prison_cell *c
bio_list_init(&bios);
cell_release(pool, cell, &bios);
- error = should_error_unserviceable_bio(pool);
- if (error)
- while ((bio = bio_list_pop(&bios)))
- bio_endio(bio, error);
- else
- while ((bio = bio_list_pop(&bios)))
- retry_on_resume(bio);
+ while ((bio = bio_list_pop(&bios)))
+ retry_on_resume(bio);
}
static void process_discard_cell(struct thin_c *tc, struct dm_bio_prison_cell *cell)