]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: BUG2082 - fix orphan counter reading
authorEldad Zinger <eldadz@mellanox.co.il>
Sun, 17 Oct 2010 10:57:38 +0000 (12:57 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:27 +0000 (05:05 -0700)
Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c

index d0a48d73d1e7d3f2e7de1be513ffcac936f60c67..0a098397d97c41307cac00f971fa41cb464ffdaa 100644 (file)
@@ -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);