Remove cpu_spinwait after seq_consistent.
It does not add any benefit as the read routine will do it as necessary.
This commit is contained in:
parent
0351824ff8
commit
0b3b55a0f2
@ -2556,10 +2556,8 @@ fget_unlocked(struct filedesc *fdp, int fd, cap_rights_t *needrightsp,
|
||||
fde = &fdt->fdt_ofiles[fd];
|
||||
haverights = *cap_rights_fde(fde);
|
||||
fp = fde->fde_file;
|
||||
if (!seq_consistent(fd_seq(fdt, fd), seq)) {
|
||||
cpu_spinwait();
|
||||
if (!seq_consistent(fd_seq(fdt, fd), seq))
|
||||
continue;
|
||||
}
|
||||
#else
|
||||
fp = fdt->fdt_ofiles[fd].fde_file;
|
||||
#endif
|
||||
|
@ -59,7 +59,6 @@ typedef uint32_t seq_t;
|
||||
* lobj = gobj;
|
||||
* if (seq_consistent(&gobj->seq, seq))
|
||||
* break;
|
||||
* cpu_spinwait();
|
||||
* }
|
||||
* foo(lobj);
|
||||
*/
|
||||
|
@ -140,7 +140,6 @@ vm_domain_policy_localcopy(struct vm_domain_policy *dst,
|
||||
*dst = *src;
|
||||
if (seq_consistent(&src->seq, seq))
|
||||
return;
|
||||
cpu_spinwait();
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,7 +167,6 @@ vm_domain_policy_copy(struct vm_domain_policy *dst,
|
||||
seq_write_end(&dst->seq);
|
||||
return;
|
||||
}
|
||||
cpu_spinwait();
|
||||
}
|
||||
}
|
||||
|
||||
@ -330,7 +328,6 @@ vm_domain_iterator_set_policy(struct vm_domain_iterator *vi,
|
||||
_vm_domain_iterator_set_policy(vi, &vt_lcl);
|
||||
return;
|
||||
}
|
||||
cpu_spinwait();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user