IB/hfi1: Using kfree_rcu() to simplify the code
authorWei Yongjun <weiyj.lk@gmail.com>
Wed, 10 Aug 2016 03:14:04 +0000 (03:14 +0000)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:31:42 +0000 (14:31 -0400)
commit476d95bd02240894806ebe64f1c4dcf6dbba87f4
tree09cc91d9d641495670f5c4e57a2bcb8a0f2b4e74
parent69b9f4a4233b6f9ea168c25123b9eb629739d8e5
IB/hfi1: Using kfree_rcu() to simplify the code

The callback function of call_rcu() just calls a kfree(), so we
can use kfree_rcu() instead of call_rcu() + callback function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/mad.c