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:
Mateusz Guzik 2016-12-30 06:26:17 +00:00
parent 0351824ff8
commit 0b3b55a0f2
3 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -59,7 +59,6 @@ typedef uint32_t seq_t;
* lobj = gobj;
* if (seq_consistent(&gobj->seq, seq))
* break;
* cpu_spinwait();
* }
* foo(lobj);
*/

View File

@ -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();
}
}