linux/fs/ceph
Sage Weil e8e1ba96b2 ceph: queue cap_snaps once per realm
We were forming a dirty list, and then queueing cap_snaps for each realm
_and_ its children, regardless of whether the children were already in the
dirty list.  This meant we did it twice for some realms.  Which in turn
meant we corrupted mdsc->snap_flush_list when the cap_snap was re-added to
the list it was already on, and could trigger an infinite loop.

We were also using recursion to do reach all the children, a no-no when
stack is limited.

Instead, (re)queue any children on the dirty list, avoiding processing
anything twice and avoiding any recursion.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-02-04 20:45:58 -08:00
..
addr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2010-11-19 15:32:22 -08:00
caps.c ceph: avoid immediate cap check after import 2011-01-19 09:23:26 -08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
dir.c ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
export.c ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
file.c ceph: mark user pages dirty on direct-io reads 2010-12-17 09:54:40 -08:00
inode.c ceph: fix getattr on directory when using norbytes 2011-01-13 15:50:06 -08:00
ioctl.c ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. 2010-10-20 15:38:23 -07:00
ioctl.h ceph: fix ioctl magic 2010-12-06 09:45:22 -08:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: Behave better when handling file lock replies. 2010-12-01 14:22:34 -08:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c ceph: avoid picking MDS that is not active 2011-01-25 08:16:37 -08:00
mds_client.h ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: queue cap_snaps once per realm 2011-02-04 20:45:58 -08:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: fix cap_wanted_delay_{min,max} mount option initialization 2011-01-19 09:23:22 -08:00
super.h ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
xattr.c ceph: fix xattr rbtree search 2011-01-13 15:50:11 -08:00