block: consolidate struct request timestamp fields
authorOmar Sandoval <osandov@fb.com>
Wed, 9 May 2018 09:08:53 +0000 (02:08 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 May 2018 14:33:09 +0000 (08:33 -0600)
commit522a777566f5669606a1227bf13f3fb40963780b
tree7d37c9d591e5a9abb4fd1209f1c503ae1a0e8475
parent4bc6339a583cec650b05d6fdcc83f03f941c1a3b
block: consolidate struct request timestamp fields

Currently, struct request has four timestamp fields:

- A start time, set at get_request time, in jiffies, used for iostats
- An I/O start time, set at start_request time, in ktime nanoseconds,
  used for blk-stats (i.e., wbt, kyber, hybrid polling)
- Another start time and another I/O start time, used for cfq and bfq

These can all be consolidated into one start time and one I/O start
time, both in ktime nanoseconds, shaving off up to 16 bytes from struct
request depending on the kernel config.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
block/blk-core.c
block/blk-merge.c
block/blk-mq.c
block/blk-stat.c
block/blk-stat.h
block/blk.h
block/cfq-iosched.c
drivers/md/dm-rq.c
include/linux/blkdev.h