Commit 9d094eeb authored by Mike Snitzer's avatar Mike Snitzer

dm thin: optimize retry_bios_on_resume

Eliminate redundant should_error_unserviceable_bio check and error
loop.
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent ac4c3f34
...@@ -1263,11 +1263,6 @@ static void retry_bios_on_resume(struct pool *pool, struct dm_bio_prison_cell *c ...@@ -1263,11 +1263,6 @@ static void retry_bios_on_resume(struct pool *pool, struct dm_bio_prison_cell *c
bio_list_init(&bios); bio_list_init(&bios);
cell_release(pool, cell, &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))) while ((bio = bio_list_pop(&bios)))
retry_on_resume(bio); retry_on_resume(bio);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment