diff options
author | Jens Axboe <axboe@suse.de> | 2006-01-17 05:09:27 -0500 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-01-24 04:06:19 -0500 |
commit | 53e86061b5bd4aece9bbb6b00b30720200596ecb (patch) | |
tree | 962917a553ecfc1075060731038ae763fc9e34b5 | |
parent | 2cb2e147a6d20bffd1d6b7a79be7301560f751c3 (diff) |
[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>
-rw-r--r-- | block/ll_rw_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 5c62507a510d..6bc41564c70e 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -3153,7 +3153,7 @@ static int __end_that_request_first(struct request *req, int uptodate, | |||
3153 | if (blk_fs_request(req) && req->rq_disk) { | 3153 | if (blk_fs_request(req) && req->rq_disk) { |
3154 | const int rw = rq_data_dir(req); | 3154 | const int rw = rq_data_dir(req); |
3155 | 3155 | ||
3156 | __disk_stat_add(req->rq_disk, sectors[rw], nr_bytes >> 9); | 3156 | disk_stat_add(req->rq_disk, sectors[rw], nr_bytes >> 9); |
3157 | } | 3157 | } |
3158 | 3158 | ||
3159 | total_bytes = bio_nbytes = 0; | 3159 | total_bytes = bio_nbytes = 0; |