]> git.baikalelectronics.ru Git - kernel.git/commit
ide-pm: always pass 0 error to __blk_end_request_all
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Apr 2017 07:34:21 +0000 (09:34 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 26 Apr 2017 13:53:34 +0000 (07:53 -0600)
commitb7c31cd3991df03a19f7afc1e6defcb9ecabfe6f
treefd793bd43dd0907967f7b133decaa7cd3cfe59a0
parent3785da31bbba5bf0076c2937d883ded2b184446b
ide-pm: always pass 0 error to __blk_end_request_all

ide_pm_execute_rq exectures a PM request synchronously, and in the failure
case where it calls __blk_end_request_all it never checks the error field
passed to the end_io callback, so don't bother setting it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/ide/ide-pm.c