OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
e0a0623
..
4fdf895
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);
}