Whamcloud - gitweb
LU-14838 osc: Remove lockless truncate
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 9 Jul 2021 20:13:09 +0000 (16:13 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Aug 2021 02:51:32 +0000 (02:51 +0000)
commitb0df9f2c83dd98cdad957c8cd127a46a2b3beb46
tree518e174d7df13d9373d4b8659cce0a87119e4544
parent17d505f6e3c2e85b966003d4340353580a11e96a
LU-14838 osc: Remove lockless truncate

Lockless truncate does not work and cannot be made to work.

Fundamentally, it has no means of ensuring consistency
across clients because it can't force them all to drop
cached data without locking.

It's been off for years - let's just get rid of it.

Lustre-change: https://review.whamcloud.com/44204
Lustre-commit: 6335dba83995765c1ffcd7993eb8958c162913e1

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ia2979fb6b31a61da6d4833e9f463fcd5b6dbd718
Reviewed-on: https://review.whamcloud.com/44436
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
14 files changed:
lustre/include/lustre_osc.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/llite_lib.c
lustre/mdc/lproc_mdc.c
lustre/mdt/mdt_io.c
lustre/ofd/ofd_dev.c
lustre/osc/lproc_osc.c
lustre/osc/osc_io.c
lustre/osc/osc_lock.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-sec.sh
lustre/tests/sanityn.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c