]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[BLOCK] ll_rw_blk: use preempt-disabling disk_stat_add() in completion
authorJens Axboe <axboe@suse.de>
Tue, 17 Jan 2006 10:09:27 +0000 (11:09 +0100)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Tue, 24 Jan 2006 09:06:19 +0000 (10:06 +0100)
It can legally be called with interrupts/preemption enabled.

Signed-off-by: Jens Axboe <axboe@suse.de>
block/ll_rw_blk.c

index 5c62507a510d1d9a3d1320e6e6b3a1378f94bd6a..6bc41564c70e2cda86dd26c502c1967aa6902e0f 100644 (file)
@@ -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;