mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
04a061e4d1
When sending messages to clients, ctdb checks for EAGAIN error code and
schedules next write in the subsequent event loop. Using sys_write in
these places causes ctdb to loop hard till a client is able to read from
the socket. With real time scheduling, ctdb daemon spins consuming 100%
of CPU trying to write to the client sockets. This can be quite harmful
when running under VMs or machines with single CPU.
This regression was introduced when all read/write calls were replaced to
use sys_read/sys_write wrappers (
|
||
---|---|---|
.. | ||
cmdline.c | ||
ctdb_fork.c | ||
ctdb_io.c | ||
ctdb_logging.c | ||
ctdb_ltdb.c | ||
ctdb_message.c | ||
ctdb_util.c | ||
rb_tree.c | ||
rb_tree.h | ||
system_aix.c | ||
system_common.c | ||
system_freebsd.c | ||
system_gnu.c | ||
system_kfreebsd.c | ||
system_linux.c | ||
system_util.c |