]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
block: add a error_count field to struct request
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Apr 2017 14:03:11 +0000 (16:03 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 18:16:10 +0000 (12:16 -0600)
This is for the legacy floppy and ataflop drivers that currently abuse
->errors for this purpose.  It's stashed away in a union to not grow
the struct size, the other fields are either used by modern drivers
for different purposes or the I/O scheduler before queing the I/O
to drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h

index e2064ed3c7038f7b4270d9db96b64ef234b7d6ab..a3dcee624de3072261d1deb87bf12ca2d7ac8b74 100644 (file)
@@ -175,6 +175,7 @@ struct request {
                struct rb_node rb_node; /* sort/lookup */
                struct bio_vec special_vec;
                void *completion_data;
+               int error_count; /* for legacy drivers, don't use */
        };
 
        /*