]> git.karo-electronics.de Git - linux-beck.git/commit
svcrpc: simplify svc_close_all
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 25 Oct 2010 22:11:21 +0000 (18:11 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Nov 2010 23:35:11 +0000 (18:35 -0500)
commitf8c0d226fef05226ff1a85055c8ed663022f40c1
tree4c9a41dc3283b9e4b3f7ef891b7d4a874741abe6
parentca7896cd83456082b1e78816cdf7e41658ef7bcd
svcrpc: simplify svc_close_all

There's no need to be fooling with XPT_BUSY now that all the threads
are gone.

The list_del_init() here could execute at the same time as the
svc_xprt_enqueue()'s list_add_tail(), with undefined results.  We don't
really care at this point, but it might result in a spurious
list-corruption warning or something.

And svc_close() isn't adding any value; just call svc_delete_xprt()
directly.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc_xprt.c