diff options
author | Jan Kara <jack@suse.cz> | 2016-06-28 10:03:59 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-28 17:21:44 +0300 |
commit | 9828c2c6c1048c61034a8b94e6376aeff6d2284f (patch) | |
tree | 423af910fd85e2b05619601631a6b06d4a368df8 /include/linux/blkdev.h | |
parent | 59a37f8baeb2c9d97f316584c90892d18bf846d4 (diff) | |
download | linux-9828c2c6c1048c61034a8b94e6376aeff6d2284f.tar.xz |
block: Convert fifo_time from ulong to u64
Currently rq->fifo_time is unsigned long but CFQ stores nanosecond
timestamp in it which would overflow on 32-bit archs. Convert it to u64
to avoid the overflow. Since the rq->fifo_time is unioned with struct
call_single_data(), this does not change the size of struct request in
any way.
We have to slightly fixup block/deadline-iosched.c so that comparison
happens in the right types.
Fixes: 9a7f38c42c2b92391d9dabaf9f51df7cfe5608e4
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 9746d223494c..d116d3b52c73 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -90,7 +90,7 @@ struct request { struct list_head queuelist; union { struct call_single_data csd; - unsigned long fifo_time; + u64 fifo_time; }; struct request_queue *q; |