Whamcloud - gitweb
LU-13608 out: don't return einprogress error 83/41183/2
authorAlexander Boyko <c17825@cray.com>
Thu, 30 Jul 2020 12:04:27 +0000 (08:04 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Feb 2021 21:59:48 +0000 (21:59 +0000)
commit7817acc39ee1d6859c2737f75619748dc8e37f95
tree9c956e1ea5a7f9a7e1aa8f8b833db8eeab9c88a9
parentefab0ee6dced2c8e0b3f0c17338b11f8dcf2d66f
LU-13608 out: don't return einprogress error

When out_handle proccess an update request it could happened
that file doesn't exist, osd_fid_lookup triggers  scrub and
returns EINPROGRESS. Remote MDT would process EINPROGRESS at
ptlrpc layer and resend a request in loop, and MDT recovery
would be blocked.

The fix adds fid to OI for ENOENT, like it was before the LU-7782.
So the second attempt with the same fid will return ENOENT.

Lustre-change: https://review.whamcloud.com/39538
Lustre-commit: 865aa3f692bccdd9cf7ff6cafeee350e06bb8d76

Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
HPE-bug-id: LUS-9062
Change-Id: Ib9a1753234ccc773e9b9529195ebfa6e5a8c101c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41183
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c