diff options
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r-- | net/sunrpc/svc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 60babf0a9847..1a6c16ed7fa6 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -527,7 +527,15 @@ svc_destroy(struct svc_serv *serv) | |||
527 | printk("svc_destroy: no threads for serv=%p!\n", serv); | 527 | printk("svc_destroy: no threads for serv=%p!\n", serv); |
528 | 528 | ||
529 | del_timer_sync(&serv->sv_temptimer); | 529 | del_timer_sync(&serv->sv_temptimer); |
530 | 530 | /* | |
531 | * The set of xprts (contained in the sv_tempsocks and | ||
532 | * sv_permsocks lists) is now constant, since it is modified | ||
533 | * only by accepting new sockets (done by service threads in | ||
534 | * svc_recv) or aging old ones (done by sv_temptimer), or | ||
535 | * configuration changes (excluded by whatever locking the | ||
536 | * caller is using--nfsd_mutex in the case of nfsd). So it's | ||
537 | * safe to traverse those lists and shut everything down: | ||
538 | */ | ||
531 | svc_close_all(serv); | 539 | svc_close_all(serv); |
532 | 540 | ||
533 | if (serv->sv_shutdown) | 541 | if (serv->sv_shutdown) |