]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: set SOCK_FASYNC
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2016 04:41:39 +0000 (21:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2016 05:43:52 +0000 (01:43 -0400)
commit82fab4dcf0f555a740c4c4cfa5015588e0bc7f57
tree7fe7d192c2b64f19f66aef83548f224622c68e28
parent11436ef9c439c9269f35aad6fe84d8e2616d24c5
sunrpc: set SOCK_FASYNC

sunrpc is using SOCKWQ_ASYNC_NOSPACE without setting SOCK_FASYNC,
so the recent optimizations done in sk_set_bit() and sk_clear_bit()
broke it.

There is still the risk that a subsequent sock_fasync() call
would clear SOCK_FASYNC, but sunrpc does not use this yet.

Fixes: 958b748b7b98 ("net: SOCKWQ_ASYNC_NOSPACE optimizations")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Jiri Pirko <jiri@resnulli.us>
Reported-by: Huang, Ying <ying.huang@intel.com>
Tested-by: Jiri Pirko <jiri@resnulli.us>
Tested-by: Huang, Ying <ying.huang@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/xprtsock.c