Whamcloud - gitweb
LU-14016 libcfs: use atomic64_t for libcfs_kmem 68/40168/5
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 7 Oct 2020 21:27:14 +0000 (14:27 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 04:30:36 +0000 (04:30 +0000)
commit9397f8cf866ad363bc3908b248f41adfa5bd8f1c
treee79915515b4af6135211014ef8ef8456a3e18a26
parent8f50015022da5f5e2f55bdf843c09f44f7beb10c
LU-14016 libcfs: use atomic64_t for libcfs_kmem

libcfs_kmem keeps track of LNet's memory usage. It uses an
int type, so it could wrap around if usage grows beyond 2.14 GB.
Use atomic64_t to avoid this issue.

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: If96fb8391c6ffb1924e47cef3dfca02eabc5f912
Reviewed-on: https://review.whamcloud.com/40168
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_private.h
libcfs/libcfs/debug.c
libcfs/libcfs/module.c
lnet/klnds/gnilnd/gnilnd.c
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c
lustre/include/obd_support.h
lustre/tests/test-framework.sh