Use write memory barrier in set_shutting_down

The server's little set_shutting_down() helper accidentally used a read
barrier instead of a write barrier.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2022-01-19 09:17:38 -08:00
parent e97ea5407d
commit e3c7e21c40

View File

@@ -172,7 +172,7 @@ static bool test_shutting_down(struct server_info *server)
static void set_shutting_down(struct server_info *server, bool val)
{
server->shutting_down = val;
smp_rmb();
smp_wmb();
}
static void stop_server(struct server_info *server)