]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: avoid block operation when !TASK_RUNNING (ceph_mdsc_close_sessions)
authorYan, Zheng <zyan@redhat.com>
Fri, 9 Jan 2015 09:00:42 +0000 (17:00 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:38 +0000 (13:31 +0300)
commitb392f4c6c2df3a752fd735a03a7e4b1bdfc020a2
tree8d2c95e94f1718806d0aed91854394ec5cfabe5b
parent1be6dba0a9335df48a6b5cba867464c31ccad888
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>
fs/ceph/mds_client.c
fs/ceph/mds_client.h