summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorZhengyuan Liu2019-07-22 04:23:27 +0200
committerJens Axboe2019-07-22 05:46:55 +0200
commit9310a7ba6de8cce6209e3e8a3cdf733f824cdd9b (patch)
tree116cab71c667dff15dedcb4c0439c964ddcdea6a /drivers/md
parentio_uring: don't use iov_iter_advance() for fixed buffers (diff)
downloadkernel-qcow2-linux-9310a7ba6de8cce6209e3e8a3cdf733f824cdd9b.tar.gz
kernel-qcow2-linux-9310a7ba6de8cce6209e3e8a3cdf733f824cdd9b.tar.xz
kernel-qcow2-linux-9310a7ba6de8cce6209e3e8a3cdf733f824cdd9b.zip
io_uring: track io length in async_list based on bytes
We are using PAGE_SIZE as the unit to determine if the total len in async_list has exceeded max_pages, it's not fair for smaller io sizes. For example, if we are doing 1k-size io streams, we will never exceed max_pages since len >>= PAGE_SHIFT always gets zero. So use original bytes to make it more accurate. Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions