Whamcloud - gitweb
LU-14494 mdt: check object exists in mdt_close_handle_layouts() 05/41905/7
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 5 Mar 2021 18:47:43 +0000 (12:47 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Mar 2021 04:16:18 +0000 (04:16 +0000)
commit075bea805efe8a7ef1a3aabd8dd2c166bb52115b
tree9c630448937f5bafe3c002cf6ddbac25cacf28a6
parentabf04e7ea356e8b1523e4183d5c46c0462f1f605
LU-14494 mdt: check object exists in mdt_close_handle_layouts()

In mdt_close_handle_layouts() the client supplied FID may not identify
an existing object. So check for this before calling lu_object_attr().

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ib1710ca4bf7587e0496b3a37a2afb65f81250455
Reviewed-on: https://review.whamcloud.com/41905
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
lustre/mdt/mdt_open.c