commit | a2a3258417eb6a1799cf893350771428875a8287 | [log] [tgz] |
---|---|---|
author | Guanjun He <gjhe@suse.com> | Sun Jul 08 19:50:33 2012 -0700 |
committer | Sage Weil <sage@inktank.com> | Mon Jul 30 09:29:53 2012 -0700 |
tree | f8906aa980d79af72e7e02d5592512a914c4b721 | |
parent | a16cb1f70799c851410d9dca0a24122e258df06c [diff] |
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: Guanjun He <gjhe@suse.com> Reviewed-by: Sage Weil <sage@inktank.com>