kernel - Remove unnecessary mplock in sys_ofstat()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 11 Dec 2010 08:31:19 +0000 (00:31 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 11 Dec 2010 08:31:19 +0000 (00:31 -0800)
* Remove get/rel_mplock around kern_fstat() in the 4.3 fstat compat
  function.

sys/emulation/43bsd/43bsd_stats.c

index 10b7a05..0be70d3 100644 (file)
@@ -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);
 }