Commit 53e86061 authored by Jens Axboe's avatar Jens Axboe Committed by 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: default avatarJens Axboe <axboe@suse.de>
parent 2cb2e147
...@@ -3153,7 +3153,7 @@ static int __end_that_request_first(struct request *req, int uptodate, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment