Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi Tear down sysctls only after detaching childre...



details:   https://anonhg.NetBSD.org/src/rev/a52f32456e73
branches:  trunk
changeset: 815828:a52f32456e73
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 05 04:53:22 2016 +0000

description:
Tear down sysctls only after detaching children. This lets you enable
debugging while detaching hangs.

diffstat:

 sys/dev/iscsi/iscsi_main.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 03bcb4196789 -r a52f32456e73 sys/dev/iscsi/iscsi_main.c
--- a/sys/dev/iscsi/iscsi_main.c        Sun Jun 05 04:51:57 2016 +0000
+++ b/sys/dev/iscsi/iscsi_main.c        Sun Jun 05 04:53:22 2016 +0000
@@ -663,12 +663,12 @@
 
        case MODULE_CMD_FINI:
 #ifdef _MODULE
-               sysctl_teardown(&clog);
-
                error = config_cfdata_detach(iscsi_cfdata);
                if (error)
                        return error;
 
+               sysctl_teardown(&clog);
+
                config_cfattach_detach(iscsi_cd.cd_name, &iscsi_ca);
                config_cfdriver_detach(&iscsi_cd);
                devsw_detach(NULL, &iscsi_cdevsw);



Home | Main Index | Thread Index | Old Index