aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-06-14 15:09:18 +0200
committerSverker Eriksson <[email protected]>2012-06-18 11:39:42 +0200
commit692b2f07e4cbf95a3e519d61f76975626602f622 (patch)
tree430aa0a085ae5877d7c0d3b066f023c16a56946f /erts/emulator
parent0ed14ae2c365bc7f37442902e389f4f75f44aa94 (diff)
downloadotp-692b2f07e4cbf95a3e519d61f76975626602f622.tar.gz
otp-692b2f07e4cbf95a3e519d61f76975626602f622.tar.bz2
otp-692b2f07e4cbf95a3e519d61f76975626602f622.zip
Revert conceptually wrong little fix as part of check_io opt
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index 81ac423a1d..ce014c19c2 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -340,7 +340,7 @@ grow_drv_ev_state(int min_ix)
new_len = max_fds;
erts_smp_mtx_lock(&drv_ev_state_grow_lock);
- if (erts_smp_atomic_read_nob(&drv_ev_state_len) <= new_len) {
+ if (erts_smp_atomic_read_nob(&drv_ev_state_len) <= min_ix) {
for (i=0; i<DRV_EV_STATE_LOCK_CNT; i++) { /* lock all fd's */
erts_smp_mtx_lock(&drv_ev_state_locks[i].lck);
}