[Devel] [PATCH VZ9 0/3] ploop BAT optimizations

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Fri Sep 27 12:53:33 MSK 2024


With this patchset, we start to check if the upcoming requests for ploop
have REQ_FUA flag.
If the flag is present, the behaviour is the same as before:
 - IO waits for BAT update
 - BAT updates submit immediately
 - every BAT update triggers flush
If the flag is absent:
 - IO does not wait for BAT update
 - all BAT updates are periodically submitted in a batch 
 - BAT update does not trigger flush

New parameter with metadata submit delay can be specified when setting
up ploop table

Andrey Zhadchenko (3):
  dm-ploop: do not flush BAT writes if request was not FUA
  dm-ploop: do not wait for BAT update for non-FUA requests
  dm-ploop: add delay for metadata writeback

 drivers/md/dm-ploop-bat.c    |  1 +
 drivers/md/dm-ploop-map.c    | 52 +++++++++++++++++++++++++++++++-----
 drivers/md/dm-ploop-target.c | 11 ++++++++
 drivers/md/dm-ploop.h        |  8 ++++++
 4 files changed, 65 insertions(+), 7 deletions(-)

-- 
2.39.3



More information about the Devel mailing list