Whamcloud - gitweb
LU-13227 LDLM: update LVB if it is server lock 11/37611/6
authorWang Shilong <wshilong@ddn.com>
Wed, 19 Feb 2020 08:29:16 +0000 (16:29 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 1 Mar 2020 05:37:21 +0000 (05:37 +0000)
commit3b5c670e65b5f3924e014ab1d030e6f45e2999d3
treeb41f371ff9d64fe5cccd3fa1adce41930f2de26e
parent6724d8ca58e9b8474a180b013a4723cbdd8900d9
LU-13227 LDLM: update LVB if it is server lock

ldlm_glimpse_ast() is registered for server lock which means
when client send a glimpse request, it just return a special error
for this lock, it is possible that local object has size expanding
with this PW lock, so we should try update LVB upon error.

Originally, ldlm_cb_interpret() has codes to handle this error,
but it only try to handle case with some clients race, it doesn't
cover server lock cases especially after we turn on lockless for DIO.

Fixes: 6bce536725 ("LU-4198 clio: turn on lockless for some kind of IO")
Change-Id: Ic84fd19d9eaf7f8245b8f7a2165ee5913849ac01
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37611
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lock.c