Whamcloud - gitweb
LU-14838 osc: Remove lockless truncate 04/44204/5
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 9 Jul 2021 20:13:09 +0000 (16:13 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Jul 2021 02:30:04 +0000 (02:30 +0000)
commit6335dba83995765c1ffcd7993eb8958c162913e1
tree7e465d1afb70a347042e17477532870f2e02f7ad
parent592d9a737bc19fbf0d3419ede32068cf8bf7677e
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.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ia2979fb6b31a61da6d4833e9f463fcd5b6dbd718
Reviewed-on: https://review.whamcloud.com/44204
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@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