ceph: Don't add dirty inode to dirty list if caps is in migration
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:49:07 +0000 (10:49 +0800)
committerAlex Elder <elder@inktank.com>
Thu, 13 Dec 2012 14:13:08 +0000 (08:13 -0600)
commit0685235ffd9dbdb9ccbda587f8a3c83ad1d5a921
tree3a8e52d05e8e2f6ef5a270369c460588452a8f33
parented75ec2cd19b47efcd292b6e23f58e56f4c5bc34
ceph: Don't add dirty inode to dirty list if caps is in migration

Add dirty inode to cap_dirty_migrating list instead, this can avoid
ceph_flush_dirty_caps() entering infinite loop.

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