Whamcloud - gitweb
LU-13935 ofd: object removal is not handled properly 65/39765/3
authorAndrew Perepechko <andrew.perepechko@hpe.com>
Mon, 31 Aug 2020 08:49:59 +0000 (11:49 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Sep 2020 03:13:15 +0000 (03:13 +0000)
commit5215f11da7747d52f47ad3fd6ae3322b71990b68
treef7097d54f14ad37b11ee48b80c7845ec7f46ef62
parent66876ae2f6bec5f57af475b4dafedeacd7fbe7e5
LU-13935 ofd: object removal is not handled properly

We should not check for object existence in
ofd_version_get_check() when we haven't got the lock yet.
ofd_attr_set() will check it later.

In ofd_destroy(), we should unlock if the object
does not exist, otherwise oti_w_locks assertion will fail.

Change-Id: I00f67d15c3268bcf55aafa88c088f2dbf55a470c
Signed-off-by: Andrew Perepechko <andrew.perepechko@hpe.com>
HPE-bug-id: LUS-9063,LUS-9282
Reviewed-on: https://review.whamcloud.com/39765
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_objects.c