]> git.baikalelectronics.ru Git - kernel.git/commit
block: add cmd_flags to print_req_error
authorBalbir Singh <sblbir@amzn.com>
Tue, 30 Oct 2018 02:40:15 +0000 (02:40 +0000)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Dec 2018 18:39:38 +0000 (11:39 -0700)
commitfdee11f7daabd1b31c92a1597ad2516e915acedb
tree8b9afba18247af737f738c1298d05dc262ee73e6
parentd6970c6b54a67461b4d877884af513b6ac4f76c0
block: add cmd_flags to print_req_error

I ran into a bug where after hibernation due to incompatible
backends, the block driver returned BLK_STS_NOTSUPP, with the
current message it's hard to find out what the command flags
were. Adding req->cmd_flags help make the problem easier to
diagnose.

Reviewed-by: Eduardo Valentin <eduval@amazon.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Balbir Singh <sblbir@amzn.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c