Re: [PATCH][RESEND] NET: Add the helper kernel_sock_shutdown()

2007-11-12 Thread David Miller
From: Trond Myklebust <[EMAIL PROTECTED]> Date: Mon, 12 Nov 2007 15:19:24 -0500 > ...and fix a couple of bugs in the NBD, CIFS and OCFS2 socket handlers. > > Looking at the sock->op->shutdown() handlers, it looks as if all of them > take a SHUT_RD/SHUT_WR/SHUT_RDWR argument instead of the > RCV_S

[PATCH][RESEND] NET: Add the helper kernel_sock_shutdown()

2007-11-12 Thread Trond Myklebust
...and fix a couple of bugs in the NBD, CIFS and OCFS2 socket handlers. Looking at the sock->op->shutdown() handlers, it looks as if all of them take a SHUT_RD/SHUT_WR/SHUT_RDWR argument instead of the RCV_SHUTDOWN/SEND_SHUTDOWN arguments. Add a helper, and then define the SHUT_* enum to ensure th