Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2005 16:04:19 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 88178 for review
Message-ID:  <200512141604.jBEG4J1q068247@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=88178

Change 88178 by jhb@jhb_slimer on 2005/12/14 16:03:32

	Don't destroy the linux_osname mutex twice on unload.

Affected files ...

.. //depot/projects/smpng/sys/alpha/linux/linux_sysvec.c#22 edit
.. //depot/projects/smpng/sys/amd64/linux32/linux32_sysvec.c#12 edit
.. //depot/projects/smpng/sys/compat/linux/linux_mib.c#12 edit
.. //depot/projects/smpng/sys/compat/linux/linux_mib.h#7 edit
.. //depot/projects/smpng/sys/i386/linux/linux_sysvec.c#47 edit

Differences ...

==== //depot/projects/smpng/sys/alpha/linux/linux_sysvec.c#22 (text+ko) ====

@@ -263,7 +263,6 @@
 				linux_ioctl_unregister_handler(*lihp);
 			if (bootverbose)
 				printf("Linux ELF exec handler removed\n");
-			linux_mib_destroy();
 		} else
 			printf("Could not deinstall ELF interpreter entry\n");
 		break;

==== //depot/projects/smpng/sys/amd64/linux32/linux32_sysvec.c#12 (text+ko) ====

@@ -1081,7 +1081,6 @@
 				linux_ioctl_unregister_handler(*lihp);
 			if (bootverbose)
 				printf("Linux ELF exec handler removed\n");
-			linux_mib_destroy();
 		} else
 			printf("Could not deinstall ELF interpreter entry\n");
 		break;

==== //depot/projects/smpng/sys/compat/linux/linux_mib.c#12 (text+ko) ====

@@ -156,13 +156,6 @@
 }
 
 void
-linux_mib_destroy(void)
-{
-
-	mtx_destroy(&osname_lock);
-}
-
-void
 linux_get_osname(struct thread *td, char *dst)
 {
 	register struct prison *pr;

==== //depot/projects/smpng/sys/compat/linux/linux_mib.h#7 (text+ko) ====

@@ -31,8 +31,6 @@
 #ifndef _LINUX_MIB_H_
 #define _LINUX_MIB_H_
 
-void	linux_mib_destroy(void);
-
 void	linux_get_osname(struct thread *td, char *dst);
 int	linux_set_osname(struct thread *td, char *osname);
 

==== //depot/projects/smpng/sys/i386/linux/linux_sysvec.c#47 (text+ko) ====

@@ -923,7 +923,6 @@
 				linux_ioctl_unregister_handler(*lihp);
 			if (bootverbose)
 				printf("Linux ELF exec handler removed\n");
-			linux_mib_destroy();
 		} else
 			printf("Could not deinstall ELF interpreter entry\n");
 		break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512141604.jBEG4J1q068247>