]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: TCP: rds_tcp_accept_worker() must exit gracefully when terminating rds-tcp
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 6 Jun 2016 20:22:43 +0000 (13:22 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 10 Aug 2016 23:04:30 +0000 (16:04 -0700)
commit6d76a1608abef0a3be618a7572a316db0708bc8e
tree905ae8ae55ec61b6c23e79102abb64b478b95631
parentb3d8099d6b4ec1a4a38ce09ea18651b05cb2885c
RDS: TCP: rds_tcp_accept_worker() must exit gracefully when terminating rds-tcp

Orabug 23542064

Backport of upstream commit 37e14f4fe299 ("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