]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: TCP: rds_tcp_accept_worker() must exit gracefully when terminating rds-tcp
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 18 May 2016 17:06:23 +0000 (10:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 23:19:57 +0000 (19:19 -0400)
commitfc633b0e933f96984f069a03a6a02634d4ec30cf
treeae8fd4ac36094170b29eb6dc73027773b23c60ba
parentef9a91c2eb18d2a04aecb8f711d6ab10c3f52e83
RDS: TCP: rds_tcp_accept_worker() must exit gracefully when terminating rds-tcp

There are two instances where we want to terminate RDS-TCP: when
exiting the netns or during module unload. In either case, the
termination sequence is to stop the listen socket, mark the
rtn->rds_tcp_listen_sock as null, and flush any accept workqs.
Thus any workqs that get flushed at this point will encounter a
null rds_tcp_listen_sock, and must exit gracefully to allow
the RDS-TCP termination to complete successfully.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp_listen.c