When I added .can_FOO caching in 1.16, I missed the case that the sh
plugin itself was calling .can_flush twice in some situations (in
order to default .can_fua). Then right after, I regressed it to call
.can_zero twice (in order to default .can_fast_zero). I also missed
that .thread_model could use better caching, because at the time, I
did not add testsuite coverage. Fix that now.
Eric Blake (2):
sh, eval: Cache .can_zero and .can_flush
server: Better caching of .thread_model
server/internal.h | 1 +
server/connections.c | 8 ++-
server/filters.c | 8 +--
server/locks.c | 7 ++-
server/plugins.c | 12 ++---
server/protocol-handshake.c | 5 +-
server/sockets.c | 3 +-
plugins/sh/methods.c | 102 +++++++++++++++++++++++-------------
tests/test-eflags.sh | 42 +++++++++++++--
9 files changed, 123 insertions(+), 65 deletions(-)
--
2.25.1