block: dump request state on seeing a corrupted request completion
authorJens Axboe <jaxboe@fusionio.com>
Wed, 30 Mar 2011 07:51:33 +0000 (09:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 5 Apr 2011 21:51:37 +0000 (23:51 +0200)
Currently we just dump a non-informative 'request botched' message.
Lets actually try and print something sane to help debug issues
around this.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c

index e0a062363937291e2a9b82602b296bd8e6e2602a..4fdf8953efbf010e7dffff8df00d7fb19acf68d7 100644 (file)
@@ -2163,7 +2163,7 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
         * size, something has gone terribly wrong.
         */
        if (blk_rq_bytes(req) < blk_rq_cur_bytes(req)) {
-               printk(KERN_ERR "blk: request botched\n");
+               blk_dump_rq_flags(req, "request botched");
                req->__data_len = blk_rq_cur_bytes(req);
        }