summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVenkat Gopalakrishnan <venkatg@codeaurora.org>2016-01-26 14:44:49 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:02:03 -0700
commit1686d75c12b910f73715a6e6c298ea914748e03f (patch)
tree8d255fcc518b6391bb17130d330ce820d0afc663 /block
parent09ed2d9d3c0ab163954d5bd605c84ddfc76f1a99 (diff)
block: test-iosched: Fix compilation error in end_test_bio
The function signature of bio_end_io_t is changed in 4.4 kernel and the error value is assigned in bi_error field of the bio struct, so just free the bio after bio completion. Change-Id: I08f64d8d51ae401fa608351b90b1120d8b84605f Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'block')
-rw-r--r--block/test-iosched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c
index 2a0be42dd930..a4916def3f67 100644
--- a/block/test-iosched.c
+++ b/block/test-iosched.c
@@ -105,10 +105,8 @@ EXPORT_SYMBOL(check_test_completion);
* A callback to be called per bio completion.
* Frees the bio memory.
*/
-static void end_test_bio(struct bio *bio, int err)
+static void end_test_bio(struct bio *bio)
{
- if (err)
- clear_bit(BIO_UPTODATE, &bio->bi_flags);
bio_put(bio);
}