projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a8b4b
)
block: dump request state on seeing a corrupted request completion
author
Jens Axboe
<jaxboe@fusionio.com>
Wed, 30 Mar 2011 07:51:33 +0000
(09:51 +0200)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/block/blk-core.c
b/block/blk-core.c
index e0a062363937291e2a9b82602b296bd8e6e2602a..4fdf8953efbf010e7dffff8df00d7fb19acf68d7 100644
(file)
--- 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);
}