diff options
author | Nick Mills <[email protected]> | 2015-03-16 14:43:46 -0400 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-04-10 17:21:27 +0200 |
commit | 641003f0dd87c0f50b06c022a1d162fc04e96795 (patch) | |
tree | 40fc6fc67075d2b3ac295c1444e969fbdaa5131d /erts | |
parent | f54392bc3c811d44cef2b31c20cac9fb11bf38e1 (diff) | |
download | otp-641003f0dd87c0f50b06c022a1d162fc04e96795.tar.gz otp-641003f0dd87c0f50b06c022a1d162fc04e96795.tar.bz2 otp-641003f0dd87c0f50b06c022a1d162fc04e96795.zip |
Use the correct union member inside efile_drv
The `invoke_pwritev()` function was in some places using the union
member intended for the `invoke_writev()` function.
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/drivers/common/efile_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c index 3b8e7acb6e..8d4992c3f0 100644 --- a/erts/emulator/drivers/common/efile_drv.c +++ b/erts/emulator/drivers/common/efile_drv.c @@ -1695,9 +1695,9 @@ static void invoke_pwritev(void *data) { d->result_ok = 0; d->again = 0; deq_error: - MUTEX_LOCK(d->c.writev.q_mtx); + MUTEX_LOCK(d->c.pwritev.q_mtx); driver_deq(d->c.pwritev.port, c->size); - MUTEX_UNLOCK(d->c.writev.q_mtx); + MUTEX_UNLOCK(d->c.pwritev.q_mtx); goto done; } else { @@ -1708,9 +1708,9 @@ static void invoke_pwritev(void *data) { ASSERT(written >= FILE_SEGMENT_WRITE); } - MUTEX_LOCK(d->c.writev.q_mtx); + MUTEX_LOCK(d->c.pwritev.q_mtx); driver_deq(d->c.pwritev.port, written); - MUTEX_UNLOCK(d->c.writev.q_mtx); + MUTEX_UNLOCK(d->c.pwritev.q_mtx); done: EF_FREE(iov); /* Free our copy of the vector, nothing to restore */ |