From 65e0fdf28f8d0213024018325caec225ca7451ca Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 11 Dec 2010 00:31:19 -0800 Subject: [PATCH] kernel - Remove unnecessary mplock in sys_ofstat() * Remove get/rel_mplock around kern_fstat() in the 4.3 fstat compat function. --- sys/emulation/43bsd/43bsd_stats.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/emulation/43bsd/43bsd_stats.c b/sys/emulation/43bsd/43bsd_stats.c index 10b7a05689..0be70d31e2 100644 --- a/sys/emulation/43bsd/43bsd_stats.c +++ b/sys/emulation/43bsd/43bsd_stats.c @@ -99,12 +99,10 @@ sys_ofstat(struct ofstat_args *uap) struct stat st; int error; - get_mplock(); error = kern_fstat(uap->fd, &st); if (error == 0) error = compat_43_copyout_stat(&st, uap->sb); - rel_mplock(); return (error); } -- 2.41.0