Whamcloud - gitweb
LU-9859 ptlrpc: change imp_refcount to refcount_t 33/37733/4
authorJames Simmons <jsimmons@infradead.org>
Tue, 3 Mar 2020 00:59:43 +0000 (19:59 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 11 Mar 2020 02:19:49 +0000 (02:19 +0000)
commitb1d50020c97cc66db5a6a506f20de1e1d733dacb
treee5ac2f47d91f6e0c2b1f5ae9f5ffbfc9eb6994e9
parent9db2fa9133b15a99a1d5a04914964a015de32367
LU-9859 ptlrpc: change imp_refcount to refcount_t

The lustre portals handle was removed from the OBD import so
it missed the move to refcount_t with the LU-12452 work. Moving
to refcount_t also gives us security protection due to overflow
issues with atomic_t. Lastly refcount_t gives use the same
equivalent as LASSERT_ATOMIC_* with CONFIG_REFCOUNT_FULL thus
allowing us to remove the LASSERT_ATOMIC_* wrappers in time.

Change-Id: Ifdbd51c39bd3921e3f5d18d60efed6d1ff58c5c6
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/37733
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_import.h
lustre/obdclass/genops.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c