From: Eric W. Biederman Date: Tue, 20 Jan 2009 11:03:21 +0000 (+0000) Subject: tun: Move read_wait into tun_file X-Git-Tag: v2.6.30-rc1~662^2~917 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2430de37ef0bc0799ffba7b5219d38ca417eb76;p=pandora-kernel.git tun: Move read_wait into tun_file The poll interface requires that the waitqueue exist while the struct file is open. In the rare case when a tun device disappears before the tun file closes we fail to provide this property, so move read_wait. This is safe now that tun_net_xmit is atomic with tun_detach. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed