Skip to content

Fix fallout from changes to FUA and PREFLUSH definitions

Jan Kara dm-devel linux-raid stable 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2dm: Make flush bios explicitely syncdrivers/md/dm-bufio.c drivers/md/dm-integrity.c drivers/md/dm-raid1.c +2 more+7 -51 reply
2/2md: Make flush bios explicitely syncdrivers/md/md.c drivers/md/raid5-cache.c drivers/md/raid5-ppl.c+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/2 v2] Fix fallout from changes to FUA and PREFLUSH definitions

Hello,

here are patches for DM/MD that address a possible performance issue caused by commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as synchronous".

The core of the problem is that above mentioned commit removed REQ_SYNC flag from WRITE_{FUA|PREFLUSH|...} definitions. generic_make_request_checks() however strips REQ_FUA and REQ_PREFLUSH flags from a bio when the storage doesn't report volatile write cache and thus write effectively becomes asynchronous which can lead to performance regressions.

DM/MD guys, can you please have a look at patches and take them through your trees? Thanks!

Honza