From 275cc2a1952c6f932f97bb65c3f2426ef40da3eb Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 19 Aug 2015 12:43:32 +0200 Subject: [PATCH] if: adapt to missing bi_cnt (kernel 4.2) --- kernel/mars_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/mars_if.c b/kernel/mars_if.c index 0b8e93ea..66fc4657 100644 --- a/kernel/mars_if.c +++ b/kernel/mars_if.c @@ -480,7 +480,7 @@ if_make_request(struct request_queue *q, struct bio *bio) /* Get a reference to the bio. * Will be released after bio_endio(). */ - atomic_inc(&bio->bi_cnt); + bio_get(bio); /* FIXME: THIS IS PROVISIONARY (use event instead) */