From: Eldad Zinger Date: Sun, 17 Oct 2010 10:57:38 +0000 (+0200) Subject: sdp: BUG2082 - fix orphan counter reading X-Git-Tag: v4.1.12-92~264^2~5^2~87 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=410d976f542b5d5148127f23cb55e34deaa004cd;p=users%2Fjedix%2Flinux-maple.git sdp: BUG2082 - fix orphan counter reading Signed-off-by: Eldad Zinger --- diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index d0a48d73d1e7d..0a098397d97c4 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);