Skip to content

Commit

Permalink
[BLOCK] ll_rw_blk: use preempt-disabling disk_stat_add() in completion
Browse files Browse the repository at this point in the history
It can legally be called with interrupts/preemption enabled.

Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Jan 24, 2006
1 parent 2cb2e14 commit 53e8606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53e8606

Please sign in to comment.