Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8182924b authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <jaxboe@fusionio.com>
parent b2a8b4b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}