mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 04:04:59 +00:00
The server has to be careful to only send farewell responses to quorum clients once it knows that it won't need their vote to elect a leader to server remaining clients. The logic for doing this forgot to take non-quorum clients into account. It would send farewell requests to all the final majority of quorum members once they all tried to unmount. This could leave non-quorum clients hung in unmount trying to send their farewell requests. The fix is to count mouted_clients items for non-quorum clients and hold off on sending farewell requests to the final majority until those non-quorum clients have unmounted. Signed-off-by: Zach Brown <zab@versity.com>