ceph: handle race between cap reconnect and cap release
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 22 Sep 2013 03:08:14 +0000 (11:08 +0800)
committerSage Weil <sage@inktank.com>
Sat, 23 Nov 2013 19:01:02 +0000 (11:01 -0800)
commit99a9c273b94a087f8feaec6c5ffbe3205a2dbe51
treec02a8c512356b2a9ae76e18558e5b59a75458868
parent44c99757fae80e9db058e1f1d7419cf6472e9af1
ceph: handle race between cap reconnect and cap release

When a cap get released while composing the cap reconnect message.
We should skip queuing the release message if the cap hasn't been
added to the cap reconnect message.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h