Skip to content

improve write IO performance when fragmentation is high

Heming Zhao ocfs2-devel 6 versions – Applied

Status from this message: [merged mm-nonmm-stable] ocfs2-fix-sparse-warnings.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyApplied 4/4
  2. v54 patches 6 repliesSuperseded
  3. v43 patches 10 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v31 patch1 replySuperseded
v21 patch4 repliesSuperseded
v11 patch6 repliesSuperseded

Patches in v6 All 4 applied

#Subject and filesSizeRepliesApplied
1/4ocfs2: improve write IO performance when fragmentation is highfs/ocfs2/move_extents.c fs/ocfs2/ocfs2_fs.h fs/ocfs2/resize.c +2 more+108 -110 repliesApplied
2/4ocfs2: adjust enabling place for la windowfs/ocfs2/localalloc.c fs/ocfs2/suballoc.c+8 -120 repliesApplied
3/4ocfs2: speed up chain-list searchingfs/ocfs2/suballoc.c+1 -10 repliesApplied
4/4ocfs2: fix sparse warningsfs/ocfs2/dlm/dlmdomain.c fs/ocfs2/export.c fs/ocfs2/inode.c +2 more+16 -151 replyApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJoseph Qi
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/4] improve write IO performance when fragmentation is high

The revision log is written in each patch, below 'Signed-off-by'.

## v6

only patch [4/4] contains code change. For details, see patch [4/4] revision log.

patch 1-3 are unchanged, only add 'Reviewed-by: Joseph Qi <...>'

## v5

following Joseph's suggestion to use a new patch [4/4] for fixing sparse warnings.

After this patch, there are 3 warnings left:

  ```
  1.
  fs/ocfs2/suballoc.c:2490:17: warning: context imbalance in  \
  'ocfs2_block_group_clear_bits' - different lock contexts for basic block
  
  2.
  fs/ocfs2/dlm/dlmthread.c:241:17: warning: context imbalance in \
  'dlm_purge_lockres' - unexpected unlock
  fs/ocfs2/dlm/dlmthread.c:286:9: warning: context imbalance in \
  'dlm_run_purge_list' - different lock contexts for basic block
  
  3.
  fs/ocfs2/dlm/dlmmaster.c: note: in included file:
  fs/ocfs2/dlm/dlmcommon.h:1119:9: warning: context imbalance in \
  'dlm_reset_mleres_owner' - unexpected unlock
  fs/ocfs2/dlm/dlmmaster.c:3337:9: warning: context imbalance in \
  'dlm_clean_master_list' - different lock contexts for basic block
  ```

## v4

split 3 patch files for easy reviewing:
- (1/3, existing) improve write IO performance when fragmentation is high
- (2/3, new) adjust enabling place for la-window
- (3/3, new) speed up chain-list searching

## v1 v2 v3

see patch 1 revision log.

--------------------------
Heming Zhao (4):
ocfs2: improve write IO performance when fragmentation is high
ocfs2: adjust enabling place for la window
ocfs2: speed up chain-list searching
ocfs2: fix sparse warnings

 fs/ocfs2/dlm/dlmdomain.c |  11 ++--
 fs/ocfs2/export.c        |  12 ++---
 fs/ocfs2/inode.c         |   2 +
 fs/ocfs2/localalloc.c    |  15 +++---
 fs/ocfs2/move_extents.c  |   2 +-
 fs/ocfs2/ocfs2_fs.h      |   3 +-
 fs/ocfs2/refcounttree.c  |   2 +-
 fs/ocfs2/resize.c        |   8 +++
 fs/ocfs2/suballoc.c      | 111 +++++++++++++++++++++++++++++++++------
 fs/ocfs2/suballoc.h      |   6 ++-
 10 files changed, 133 insertions(+), 39 deletions(-)
Signature · 1 line
2.35.3