Commit 30cc50ff authored by Li Nan's avatar Li Nan
Browse files

block: add precise io accouting apis

hulk inclusion
category: bugfix
bugzilla: 188421, https://gitee.com/openeuler/kernel/issues/I7WMMI


CVE: NA

--------------------------------

Currently, for bio-based device, 'ios' and 'sectors' is counted while
io is started, while 'nsecs' is counted while io is done.

This behaviour is obviously wrong, however we can't fix exist kapis
because this will require new parameter, which will cause kapi broken.
Hence this patch add some new apis, which will make sure io accounting
for bio-based device is precise.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent e9235a90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment