Whamcloud - gitweb
LU-7021 osd: fix credits optimization 70/57570/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 23 Dec 2024 05:35:09 +0000 (08:35 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 10 Apr 2025 06:54:06 +0000 (06:54 +0000)
commit2e525833a6df942ab55757edfa84bbcfd093a9e3
tree525021c70482397a571458c5302b09c34847129f
parentf57455ffa2871ab31a3e8f3a78e0f5e3b9110586
LU-7021 osd: fix credits optimization

as object's uid/gid can change after declaration in a concurrent
thread, we can't really trust them to optimaze credits calculation.
so only target uid/gid (what we declare to change to) can be used
for optimization.

Fixes: 9f79d4488  ("LU-10048 ofd: take local locks within transaction")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: If859e64033487574ebb670e80f11c968f1595d00
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57570
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/osd-ldiskfs/osd_quota.c