Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 15:52:11 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210197 - head/sys/compat/svr4
Message-ID:  <201007171552.o6HFqBAl072223@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sat Jul 17 15:52:11 2010
New Revision: 210197
URL: http://svn.freebsd.org/changeset/base/210197

Log:
  Remove proc locking, it's not needed after r210132.

Modified:
  head/sys/compat/svr4/svr4_filio.c

Modified: head/sys/compat/svr4/svr4_filio.c
==============================================================================
--- head/sys/compat/svr4/svr4_filio.c	Sat Jul 17 15:47:28 2010	(r210196)
+++ head/sys/compat/svr4/svr4_filio.c	Sat Jul 17 15:52:11 2010	(r210197)
@@ -64,12 +64,8 @@ svr4_sys_poll(td, uap)
      int idx = 0, cerr;
      u_long siz;
 
-     PROC_LOCK(td->td_proc);
-     if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE) {
-       PROC_UNLOCK(td->td_proc);
+     if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE)
        return (EINVAL);
-     }
-     PROC_UNLOCK(td->td_proc);
 
      pa.fds = uap->fds;
      pa.nfds = uap->nfds;



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