Commit 2fc27a1c authored by Cy Schubert's avatar Cy Schubert
Browse files

ipfilter: Locking sysctls here is not required

Locking of data structures touched by sysctls is more finely locked
in ipflter therefore higher level locks are redundant.

(cherry picked from commit 1605eaa6)
parent ffcdbc35
......@@ -343,7 +343,6 @@ sysctl_ipf_int ( SYSCTL_HANDLER_ARGS )
{
int error = 0;
WRITE_ENTER(&V_ipfmain.ipf_mutex);
if (arg1)
error = SYSCTL_OUT(req, arg1, sizeof(int));
else
......@@ -362,7 +361,6 @@ sysctl_ipf_int ( SYSCTL_HANDLER_ARGS )
}
sysctl_error:
RWLOCK_EXIT(&V_ipfmain.ipf_mutex);
return (error);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment