Whamcloud - gitweb
LU-14494 mdt: check object exists in mdt_close_handle_layouts()
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 5 Mar 2021 18:47:43 +0000 (12:47 -0600)
committerLi Xi <lixi@ddn.com>
Wed, 28 Apr 2021 13:45:14 +0000 (13:45 +0000)
commit922ed439f50c3a660860a2dac100d228318ff4db
tree159dde7f1ec020967e464d7aae385791be8bec2b
parent7753b409ba2d9bc3759dcc0f8fe4058d80b00414
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().

Lustre-commit: 075bea805efe8a7ef1a3aabd8dd2c166bb52115b
Lustre-change: https://review.whamcloud.com/41905

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