Whamcloud - gitweb
LU-9859 libcfs: replace memory_presure functions by standard interfaces 11/38211/9
authorMr NeilBrown <neilb@suse.de>
Mon, 4 May 2020 15:43:58 +0000 (11:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:40:24 +0000 (05:40 +0000)
commita35d4814f8444ec71c97377e1c276945fa31fc1b
tree0eff095c8aba12aa7f54cb95a610fd68d3967821
parente468c285e0d801e1f2ef6772e43df1465666c649
LU-9859 libcfs: replace memory_presure functions by standard interfaces

Use memalloc_noreclaim_save() and memalloc_noreclaim_restore(),
and for testing, just directly test the flag in current->flags

Linux-commit: fa399093620b867afe7686be47f197c8f17908c5

Change-Id: Id8f68164a7532ee4a816c71aff922f484c04877d
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/38211
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
12 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/libcfs_prim.h
libcfs/include/libcfs/linux/linux-mem.h
libcfs/libcfs/tracefile.c
lnet/klnds/gnilnd/gnilnd_cb.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/lnet/lib-move.c
lustre/ldlm/ldlm_lockd.c
lustre/osc/osc_cache.c
lustre/osc/osc_request.c
lustre/ptlrpc/niobuf.c
lustre/target/tgt_handler.c