提交 53e86061 编写于 作者: J Jens Axboe 提交者: Jens Axboe

[BLOCK] ll_rw_blk: use preempt-disabling disk_stat_add() in completion

It can legally be called with interrupts/preemption enabled.
Signed-off-by: NJens Axboe <axboe@suse.de>
上级 2cb2e147
......@@ -3153,7 +3153,7 @@ static int __end_that_request_first(struct request *req, int uptodate,
if (blk_fs_request(req) && req->rq_disk) {
const int rw = rq_data_dir(req);
__disk_stat_add(req->rq_disk, sectors[rw], nr_bytes >> 9);
disk_stat_add(req->rq_disk, sectors[rw], nr_bytes >> 9);
}
total_bytes = bio_nbytes = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册