diff options
author | Sverker Eriksson <[email protected]> | 2012-06-14 15:09:18 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-06-18 11:39:42 +0200 |
commit | 692b2f07e4cbf95a3e519d61f76975626602f622 (patch) | |
tree | 430aa0a085ae5877d7c0d3b066f023c16a56946f | |
parent | 0ed14ae2c365bc7f37442902e389f4f75f44aa94 (diff) | |
download | otp-692b2f07e4cbf95a3e519d61f76975626602f622.tar.gz otp-692b2f07e4cbf95a3e519d61f76975626602f622.tar.bz2 otp-692b2f07e4cbf95a3e519d61f76975626602f622.zip |
Revert conceptually wrong little fix as part of check_io opt
-rw-r--r-- | erts/emulator/sys/common/erl_check_io.c | 2 |
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); } |