From: Jens Axboe Date: Wed, 30 Mar 2011 07:51:33 +0000 (+0200) Subject: block: dump request state on seeing a corrupted request completion X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8182924bc5850281985d73c312876746acd390b5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git block: dump request state on seeing a corrupted request completion 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 --- diff --git a/block/blk-core.c b/block/blk-core.c index e0a062363937..4fdf8953efbf 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -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); }