From: Matthew Dillon Date: Sat, 11 Dec 2010 08:31:19 +0000 (-0800) Subject: kernel - Remove unnecessary mplock in sys_ofstat() X-Git-Url: https://gitweb.dragonflybsd.org/~alexh/dragonfly.git/commitdiff_plain/65e0fdf28f8d0213024018325caec225ca7451ca kernel - Remove unnecessary mplock in sys_ofstat() * Remove get/rel_mplock around kern_fstat() in the 4.3 fstat compat function. --- 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); }