aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2015-09-27 19:01:50 +0000
committerJens Axboe <[email protected]>2015-10-01 08:10:55 +0000
commitf4829a9b7a61e159367350008a608b062c4f6840 (patch)
treea2f488a95324e0c0b558273f48b18413ab2fa221 /drivers/fpga/fpga-mgr.c
parentblk-mq: fix deadlock when reading cpu_list (diff)
downloadkernel-f4829a9b7a61e159367350008a608b062c4f6840.tar.gz
kernel-f4829a9b7a61e159367350008a608b062c4f6840.zip
blk-mq: fix racy updates of rq->errors
blk_mq_complete_request may be a no-op if the request has already been completed by others means (e.g. a timeout or cancellation), but currently drivers have to set rq->errors before calling blk_mq_complete_request, which might leave us with the wrong error value. Add an error parameter to blk_mq_complete_request so that we can defer setting rq->errors until we known we won the race to complete the request. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions