Whamcloud - gitweb
LU-14618 lov: correctly handling sub-lock init failure 45/43345/2
authorBobi Jam <bobijam@whamcloud.com>
Fri, 16 Apr 2021 15:56:01 +0000 (23:56 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 May 2021 02:49:29 +0000 (02:49 +0000)
commit1a5169f9962e254ed4225fe35e8ee6cb6ff7a7f6
treeb6700b05bd03690a642f3ee46d4b660f630c1ffa
parent9962d6f84db5fd587bbe13640a9361c2872f3728
LU-14618 lov: correctly handling sub-lock init failure

In lov_lock_sub_init(), if a sublock initialization fails, it needs to
bail out of the outer loop as well as the inner one.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ic4e16f484a0a64c670eea5d47054bac19bc95144
Reviewed-on: https://review.whamcloud.com/43345
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_lock.c