diff options
author | mjg <mjg@FreeBSD.org> | 2017-01-24 19:39:24 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2017-01-24 19:39:24 +0000 |
commit | 4fc6ad7e7fce80ff65a66450f1f8e722c8f31070 (patch) | |
tree | 4c3a61cb06466c4082239e2cdf21b457cdc5c16e /sys/kern/kern_descrip.c | |
parent | ddacedb15c9a5535134460863f48986b6d8e82da (diff) | |
download | FreeBSD-src-4fc6ad7e7fce80ff65a66450f1f8e722c8f31070.zip FreeBSD-src-4fc6ad7e7fce80ff65a66450f1f8e722c8f31070.tar.gz |
MFC r310805:
Remove cpu_spinwait after seq_consistent.
It does not add any benefit as the read routine will do it as necessary.
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 29a1d4b..a27a19d 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2477,10 +2477,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 |