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>
This commit is contained in:
Venkat Gopalakrishnan 2016-01-26 14:44:49 -08:00 committed by David Keitel
parent 09ed2d9d3c
commit 1686d75c12

View file

@ -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);
}