staging:lustre: use available kernel wrappers in lib-socket.c
authorJames Simmons <jsimmons@infradead.org>
Tue, 9 Jun 2015 02:27:11 +0000 (22:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 00:50:55 +0000 (17:50 -0700)
commit5c2414ef1cac1dcdc0a8b67ad6966935fba9d284
treee396d83f06dd53607a2f885bbf5575e5b0db26d8
parent1ad6a73ef2bb2a13a60ea804ea7a4cbfc857bcb8
staging:lustre: use available kernel wrappers in lib-socket.c

Instead of handling calls to struct proto ourselves we can use
equivalent kernel wrappers. No wrapper exist for unlocked ioctl
handling so we create one here for our use. I expect some day
that function will be integrated into sock.c.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-socket.c