From: Al Viro Date: Sat, 19 Apr 2008 19:33:56 +0000 (+0100) Subject: KVM: kill file->f_count abuse in kvm X-Git-Tag: v2.6.26-rc1~1028^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c0b394f08fd89236515c1c84485ea712a157be;p=pandora-kernel.git KVM: kill file->f_count abuse in kvm Use kvm own refcounting instead of playing with ->filp->f_count. That will allow to get rid of a lot of crap in anon_inode_getfd() and kill a race in kvm_dev_ioctl_create_vm() (file might have been closed immediately by another thread, so ->filp might point to already freed struct file when we get around to setting it). Signed-off-by: Al Viro Signed-off-by: Avi Kivity --- Reading git-diff-tree failed