]> git.baikalelectronics.ru Git - kernel.git/commit
tun: Move read_wait into tun_file
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Jan 2009 11:03:21 +0000 (11:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 00:00:46 +0000 (16:00 -0800)
commit6e8ac8de59039c478494f89dee04fa8004784c41
tree19a5a5103ed2227f230aa06f87dc7807e871d5b5
parentb1fe5e41eff7019c9a2c4821fd7621852011c8ff
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 <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c