]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: set io_min, io_opt and discard_granularity to alloc_size
authorIlya Dryomov <idryomov@gmail.com>
Fri, 15 Mar 2019 13:50:04 +0000 (14:50 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 18 Mar 2019 19:30:01 +0000 (20:30 +0100)
commit90a5873b5024296b6adf15a8a5d5a8af6ec7d8de
treec2ff54b1c6e1f6867fa25a6bc201dffe77c82a8e
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
rbd: set io_min, io_opt and discard_granularity to alloc_size

Now that we have alloc_size that controls our discard behavior, it
doesn't make sense to have these set to object (set) size.  alloc_size
defaults to 64k, but because discard_granularity is likely 4M, only
ranges that are equal to or bigger than 4M can be considered during
fstrim.  A smaller io_min is also more likely to be met, resulting in
fewer deferred writes on bluestore OSDs.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c