Module Name: src Committed By: mlelstv Date: Sun Jun 5 04:53:23 UTC 2016
Modified Files: src/sys/dev/iscsi: iscsi_main.c Log Message: Tear down sysctls only after detaching children. This lets you enable debugging while detaching hangs. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/iscsi/iscsi_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/iscsi/iscsi_main.c diff -u src/sys/dev/iscsi/iscsi_main.c:1.20 src/sys/dev/iscsi/iscsi_main.c:1.21 --- src/sys/dev/iscsi/iscsi_main.c:1.20 Sun Jun 5 04:50:23 2016 +++ src/sys/dev/iscsi/iscsi_main.c Sun Jun 5 04:53:22 2016 @@ -663,12 +663,12 @@ iscsi_modcmd(modcmd_t cmd, void *arg) 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);