Re: [PATCH] blk-mq: don't call ktime_get_ns() if we don't need it

2018-11-30 Thread Jens Axboe
On 11/30/18 10:29 AM, Jens Axboe wrote: > On 11/30/18 10:27 AM, Christoph Hellwig wrote: >> On Fri, Nov 30, 2018 at 08:56:25AM -0700, Jens Axboe wrote: >>> We only need the request fields and the end_io time if we have stats >>> enabled, or if we have a scheduler attached as those may use it for

Re: [PATCH] blk-mq: don't call ktime_get_ns() if we don't need it

2018-11-30 Thread Jens Axboe
On 11/30/18 10:27 AM, Christoph Hellwig wrote: > On Fri, Nov 30, 2018 at 08:56:25AM -0700, Jens Axboe wrote: >> We only need the request fields and the end_io time if we have stats >> enabled, or if we have a scheduler attached as those may use it for >> completion time stats. >> >> Signed-off-by:

Re: [PATCH] blk-mq: don't call ktime_get_ns() if we don't need it

2018-11-30 Thread Christoph Hellwig
On Fri, Nov 30, 2018 at 08:56:25AM -0700, Jens Axboe wrote: > We only need the request fields and the end_io time if we have stats > enabled, or if we have a scheduler attached as those may use it for > completion time stats. > > Signed-off-by: Jens Axboe > --- > block/blk-mq.c | 13

[PATCH] blk-mq: don't call ktime_get_ns() if we don't need it

2018-11-30 Thread Jens Axboe
We only need the request fields and the end_io time if we have stats enabled, or if we have a scheduler attached as those may use it for completion time stats. Signed-off-by: Jens Axboe --- block/blk-mq.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git