From 410d976f542b5d5148127f23cb55e34deaa004cd Mon Sep 17 00:00:00 2001 From: Eldad Zinger Date: Sun, 17 Oct 2010 12:57:38 +0200 Subject: [PATCH] sdp: BUG2082 - fix orphan counter reading Signed-off-by: Eldad Zinger --- drivers/infiniband/ulp/sdp/sdp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index d0a48d73d1e7..0a098397d97c 100644 --- a/drivers/infiniband/ulp/sdp/sdp_main.c +++ b/drivers/infiniband/ulp/sdp/sdp_main.c @@ -2977,9 +2977,9 @@ static void __exit sdp_exit(void) sock_unregister(PF_INET_SDP); proto_unregister(&sdp_proto); - if (percpu_counter_read_positive(orphan_count)) + if (percpu_counter_sum(orphan_count)) printk(KERN_WARNING "%s: orphan_count %lld\n", __func__, - percpu_counter_read_positive(orphan_count)); + percpu_counter_sum(orphan_count)); destroy_workqueue(rx_comp_wq); destroy_workqueue(sdp_wq); -- 2.50.1