]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: hio: Update io stat accounting for 4.14
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 23 Oct 2017 17:43:58 +0000 (12:43 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:44:59 +0000 (07:44 -0600)
commitb560fb1895d725b3762295bd0711ef024f9b3761
treeca6ef903419e48b9c5e8a440f3a4b8548edfafe2
parentb9e78811654374b64a03e80a096cc1d9bc79c036
UBUNTU: hio: Update io stat accounting for 4.14

In 4.14-rc1 invflight accounting calls were updated to require a
request queue be passed, and part_(inc|dec)_in_flight() were
moved out of linux/genhd.h and are not exported to modules. Make
a couple of updates to cope with these changes:

 - Pass the rq to part_round_stats for 4.14 and later.

 - Use generic_(start|end)_io_acct() helpers for io accounting
   with 4.14 and later. These do exactly what was being done with
   the no-longer-exported interfaces.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
ubuntu/hio/hio.c