linux/fs/ceph
Sage Weil 15a2015fbc ceph: fix iput race when queueing inode work
If we queue a work item that calls iput(), make sure we ihold() before
attempting to queue work. Otherwise our queued work might miraculously run
before we notice the queue_work() succeeded and call ihold(), allowing the
inode to be destroyed.

That is, instead of

	if (queue_work(...))
		ihold();

we need to do

	ihold();
	if (!queue_work(...))
		iput();

Reported-by: Amon Ott <a.ott@m-privacy.de>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-11-05 22:06:31 -07:00
..
addr.c libceph: fix double-free of page vector 2011-10-25 16:10:17 -07:00
caps.c ceph: use new D_COMPLETE dentry flag 2011-11-05 21:10:10 -07:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: explicitly reference rename old_dentry parent dir in request 2011-07-26 11:31:14 -07:00
dir.c ceph: use new D_COMPLETE dentry flag 2011-11-05 21:10:10 -07:00
export.c ceph: avoid d_parent in ceph_dentry_hash; fix ceph_encode_fh() hashing bug 2011-07-26 11:30:55 -07:00
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2011-07-26 13:38:50 -07:00
inode.c ceph: fix iput race when queueing inode work 2011-11-05 22:06:31 -07:00
ioctl.c ceph: let the set_layout ioctl set single traits 2011-10-25 16:10:16 -07:00
ioctl.h ceph: document ioctls 2011-10-25 16:10:15 -07:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: unwind canceled flock state 2011-06-07 21:36:45 -07:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c ceph/mds_client.c: quiet sparse noise 2011-11-05 21:10:11 -07:00
mds_client.h ceph: explicitly reference rename old_dentry parent dir in request 2011-07-26 11:31:14 -07:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: only queue capsnap if caps are dirty 2011-07-26 11:26:41 -07:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph/super.c: quiet sparse noise 2011-11-05 21:10:12 -07:00
super.h ceph: use new D_COMPLETE dentry flag 2011-11-05 21:10:10 -07:00
xattr.c ceph: protect access to d_parent 2011-07-26 11:30:29 -07:00