From: Wang Shilong Date: Wed, 4 Mar 2020 07:41:58 +0000 (+0800) Subject: LU-13227 ofd: update lvb before dropping server lock X-Git-Tag: 2.13.53~98 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=92d799217aeac4e1e859264d157c62e0f02b83a8;hp=92d799217aeac4e1e859264d157c62e0f02b83a8 LU-13227 ofd: update lvb before dropping server lock If this is a local lock on a server namespace and this was the last reference, lock will be canceled directly instead of staying at LRU, this might be problem that we will lose O_DIRECT write size expanding without LVB updating. This patch try to fix the problem by updating LVB just after writing but before lock is dropped. Fixes: 6bce536725 ("LU-4198 clio: turn on lockless for some kind of IO") Change-Id: I9d1fbac30c8599d677358e8720fe9b3ca81fe818 Signed-off-by: Wang Shilong Reviewed-on: https://review.whamcloud.com/37790 Reviewed-by: Bobi Jam Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin ---