svn commit: r189907 - head/sys/net
Sean Farley
scf at FreeBSD.org
Mon Mar 16 19:32:37 PDT 2009
Author: scf
Date: Tue Mar 17 02:32:36 2009
New Revision: 189907
URL: http://svn.freebsd.org/changeset/base/189907
Log:
Remove the splimp()/splx() calls around the setting of the MTU. They are
no-op's that I inadvertently added. Even if locking is needed in general
for the ioctl's, setting a single long will not need it due to the operation
being atomic.
Reported by: rwatson
Modified:
head/sys/net/if_tap.c
Modified: head/sys/net/if_tap.c
==============================================================================
--- head/sys/net/if_tap.c Tue Mar 17 01:46:40 2009 (r189906)
+++ head/sys/net/if_tap.c Tue Mar 17 02:32:36 2009 (r189907)
@@ -611,9 +611,7 @@ tapifioctl(struct ifnet *ifp, u_long cmd
break;
case SIOCSIFMTU:
- s = splimp();
ifp->if_mtu = ifr->ifr_mtu;
- splx(s);
break;
case SIOCGIFSTATUS:
More information about the svn-src-head
mailing list