commit | 86d8f67b26a8b30228b5177b7e594bbc89798a23 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Fri Jan 09 17:00:42 2015 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu Feb 19 13:31:38 2015 +0300 |
tree | 8d2c95e94f1718806d0aed91854394ec5cfabe5b | |
parent | c4d4a582c538e890f09c338bc3063c28dfdc9ae5 [diff] |
ceph: avoid block operation when !TASK_RUNNING (ceph_mdsc_close_sessions) use an atomic variable to track number of sessions, this can avoid block operation inside wait loops. Signed-off-by: Yan, Zheng <zyan@redhat.com>