Whamcloud - gitweb
LU-14729 osd-ldiskfs: declare should consider concurrency
authorWang Shilong <wshilong@ddn.com>
Thu, 15 Jul 2021 08:15:37 +0000 (16:15 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Oct 2021 00:12:33 +0000 (00:12 +0000)
commitb6e2dad42b74532e3ad5c20e5cc44a4969925226
treecf7418016bd859b9b780503b99141ed171c51c0e
parent851962832b12201ee0d4969e9a7c5d0ccdff70ff
LU-14729 osd-ldiskfs: declare should consider concurrency

Write in Lustre OSD is different than Ext4 since write
is serialized in local filesystem, however in OSD side,

many concurrent threads may grow tree before transaction starts.

Also fix to use @dirty_groups rather than @extents, remove
unnecessary @depth assignment.

Lustre-change: https://review.whamcloud.com/44316
Lustre-commit: 934758366dbde211743d53b8c048c57819603cb3

Fixes: 9810341a8 ("LU-14729 osd-ldiskfs: fix to declare write commits")
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I1e0fc9069a579736a74b0ba2607056fe980574c3
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45077
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c