Skip to content

Preallocate flush bio

David Sterba linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- merge 'flush_bio_sent' from 4 to 1 and dropped patch 4
- dropped sysfs tunable (patch 5)
- fix typo in patch 1 changelog

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: preallocate device flush biofs/btrfs/disk-io.c fs/btrfs/volumes.c fs/btrfs/volumes.h+20 -180 replies
2/3btrfs: account as waiting for IO, while waiting fot the flush bio completionfs/btrfs/disk-io.c+1 -10 replies
3/3btrfs: move dev stats accounting out of wait_dev_flushfs/btrfs/disk-io.c+3 -81 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/3 v2] Preallocate flush bio

This patchset follows the updates in the write_dev_flush function. The flush bio can be preallocated at the device creation time, so we avoid repeated alloc/free.

v2:
- merge 'flush_bio_sent' from 4 to 1 and dropped patch 4
- dropped sysfs tunable (patch 5)
- fix typo in patch 1 changelog

David Sterba (3):
btrfs: preallocate device flush bio
btrfs: account as waiting for IO, while waiting fot the flush bio
completion
btrfs: move dev stats accounting out of wait_dev_flush

 fs/btrfs/disk-io.c | 38 +++++++++++---------------------------
 fs/btrfs/volumes.c | 12 ++++++++++++
 fs/btrfs/volumes.h |  1 +
 3 files changed, 24 insertions(+), 27 deletions(-)
Signature · 1 line
2.13.0