]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
block-aio-batch-completion-for-bios-kiocbs-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 23 May 2013 00:38:18 +0000 (10:38 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:22:06 +0000 (16:22 +1000)
Cc: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/blockconsole.c

index 65f8ace6dc022b2a0113ba53ce856caa1a32da89..656c5a6c1f4ed47873e1bb8f3f1c79517ab74b46 100644 (file)
@@ -164,7 +164,8 @@ static void bcon_advance_console_bytes(struct blockconsole *bc, int bytes)
        } while (cmpxchg64(&bc->console_bytes, old, new) != old);
 }
 
-static void request_complete(struct bio *bio, int err)
+static void request_complete(struct bio *bio, int err,
+                            struct batch_complete *batch)
 {
        complete((struct completion *)bio->bi_private);
 }
@@ -289,7 +290,7 @@ static void bcon_unregister(struct work_struct *work)
 }
 
 #define BCON_MAX_ERRORS        10
-static void bcon_end_io(struct bio *bio, int err)
+static void bcon_end_io(struct bio *bio, int err, struct batch_complete *batch)
 {
        struct bcon_bio *bcon_bio = container_of(bio, struct bcon_bio, bio);
        struct blockconsole *bc = bio->bi_private;