Whamcloud - gitweb
LU-12003 osd: take reference to object in osd_trunc_lock() 47/40547/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 9 Jan 2020 13:28:54 +0000 (16:28 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 4 Mar 2021 08:35:08 +0000 (08:35 +0000)
commitd5ac004ba18d290b8a8625c169bd57a8742b0a73
tree18588ae821f1947ad45d56963b9b0433929e82b7
parent201efe7eea3f7d6fb6410db8b78d0c9187c274ce
LU-12003 osd: take reference to object in osd_trunc_lock()

normally the references to objects are held until a transaction
is over, but in few cases reference is released before. and then
such an object can be release, so OSD should have own reference
to prevent early release.

Lustre-change: https://review.whamcloud.com/37170
Lustre-commit: 4fcb9081378f6ad0b7d3cf4105cf5fb2d506966f

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I81647fdec8d42f123e990553edb5e371636f45c0
Reviewed-on: https://review.whamcloud.com/37170
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40547
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c