浏览代码

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

It can legally be called with interrupts/preemption enabled.

Signed-off-by: Jens Axboe <axboe@suse.de>
Jens Axboe 19 年之前
父节点
当前提交
53e86061b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      block/ll_rw_blk.c

+ 1 - 1
block/ll_rw_blk.c

@@ -3153,7 +3153,7 @@ static int __end_that_request_first(struct request *req, int uptodate,
 	if (blk_fs_request(req) && req->rq_disk) {
 	if (blk_fs_request(req) && req->rq_disk) {
 		const int rw = rq_data_dir(req);
 		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;
 	total_bytes = bio_nbytes = 0;