Whamcloud - gitweb
LU-17987 ofd: always trust OST last_id 74/55574/4
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 30 May 2024 08:19:59 +0000 (04:19 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 21:58:28 +0000 (21:58 +0000)
commit53940ff3eee8dcd48b677b17f8def55454f549e8
tree39a39767fdde69cb9449d500454f82ecbe21d2d9
parentf7d45ef99d3ccb94d853b59345243f57ba7eee74
LU-17987 ofd: always trust OST last_id

In normal precreate, the last_id on OST is always trustable because
it's maintained in memory, and it should be MDT that messes up the
last created FID in reconnect. Even if the gap is more than
OST_MAX_PRECREATE, reply the last_id to MDT to avoid leaving OST in
unavailable status.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I838aa0ab15e6adaaa340356e54ab597a43a9fdf4
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55574
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_dev.c