]> 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)
commit5937bc6898e7dad2461206a75988abcf509c899a
treec2ff54b1c6e1f6867fa25a6bc201dffe77c82a8e
parent805099b2fb57eba3d69bc38aeb447dfe76b0ebb9
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