aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-04-19 07:00:41 +0900
committerJens Axboe <jens.axboe@oracle.com>2009-04-28 07:37:28 +0200
commit924cec7789f65ab7f022256f6533ecba0747b5f3 (patch)
treeaeb53f094712161d61990d22fecb0874e4ff3f2a /drivers
parente686307fdc84f249490e6c9da92fcb2424491f14 (diff)
downloadkernel_samsung_aries-924cec7789f65ab7f022256f6533ecba0747b5f3.zip
kernel_samsung_aries-924cec7789f65ab7f022256f6533ecba0747b5f3.tar.gz
kernel_samsung_aries-924cec7789f65ab7f022256f6533ecba0747b5f3.tar.bz2
block: clear req->errors on bio completion only for fs requests
Impact: subtle behavior change For fs requests, rq is only carrier of bios and rq error status as a whole doesn't mean much. This is the reason why rq->errors is being cleared on each partial completion of a request as on each partial completion the error status is transferred to the respective bios. For pc requests, rq->errors is used to carry error status to the issuer and thus __end_that_request_first() doesn't clear it on such cases. The condition was fine till now as only fs and pc requests have used bio and thus the bio completion path. However, future changes will unify data accesses to bio and all non fs users care about rq error status. Clear rq->errors on bio completion only for fs requests. In general, the implicit clearing is a bit too subtle especially as the meaning of rq->errors is completely dependent on low level drivers. Unifying / cleaning up rq->errors usage and letting llds manage it would be better. TODO comment added. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions