Skip to content
Commit a2a32584 authored by Guanjun He's avatar Guanjun He Committed by Sage Weil
Browse files

libceph: prevent the race of incoming work during teardown



Add an atomic variable 'stopping' as flag in struct ceph_messenger,
set this flag to 1 in function ceph_destroy_client(), and add the condition code
in function ceph_data_ready() to test the flag value, if true(1), just return.

Signed-off-by: default avatarGuanjun He <gjhe@suse.com>
Reviewed-by: default avatarSage Weil <sage@inktank.com>
parent a16cb1f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment