mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 05:13:18 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user