]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: change orphan_count and sockets_allocated from atomic_t to percpu_counter
authorNicolas Morey-Chaisemartin <nicolas.morey-chaisemartin@ext.bull.net>
Wed, 29 Apr 2009 14:23:04 +0000 (16:23 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:24 +0000 (05:04 -0700)
commit8a3c8195458b943c05690a695d01e0efbaecadbc
treea298d0ad52c765e8f1db40f069057087efd900cc
parent06fac77860da3b81469e691f4a79ebfa88403d84
sdp: change orphan_count and sockets_allocated from atomic_t to percpu_counter

Fixed SDP to work on 2.6.29+
As percpu_counter are huge they can be allocated on the stack without causing sdp module to crash.
Both variable are now dynamically allocated at module init.

Signed-off-by: Nicolas Morey-Chaisemartin <nicolas.morey-chaisemartin@ext.bull.net>
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c