The vmspace->vm_daddr is constant until freed, there is no need

to hold lock while accessing it.

Approved by:	kib (mentor)
This commit is contained in:
Roman Divacky 2008-04-21 21:24:08 +00:00
parent ae8e775b82
commit cabce2bf19

View File

@ -898,9 +898,7 @@ svr4_sys_ulimit(td, uap)
if (r == -1) if (r == -1)
r = 0x7fffffff; r = 0x7fffffff;
mtx_lock(&Giant); /* XXX */
r += (long) vm->vm_daddr; r += (long) vm->vm_daddr;
mtx_unlock(&Giant);
if (r < 0) if (r < 0)
r = 0x7fffffff; r = 0x7fffffff;
*retval = r; *retval = r;