summaryrefslogtreecommitdiff
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorJakub Sitnicki <jkbs@redhat.com>2017-08-09 17:39:12 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-13 19:43:57 -0700
commitd0225784be6c9bdfb05149ebc30bf9fc1fdbce3a (patch)
tree644e179df77456c4721f2be1b537926ebdc9a038 /drivers/net/tun.c
parentaa69ff9e9c32db8aa84835baffea1b70c39e5112 (diff)
rtnelink: Move link dump consistency check out of the loop
Calls to rtnl_dump_ifinfo() are protected by RTNL lock. So are the {list,unlist}_netdevice() calls where we bump the net->dev_base_seq number. For this reason net->dev_base_seq can't change under out feet while we're looping over links in rtnl_dump_ifinfo(). So move the check for net->dev_base_seq change (since the last time we were called) out of the loop. This way we avoid giving a wrong impression that there are concurrent updates to the link list going on while we're iterating over them. Signed-off-by: Jakub Sitnicki <jkbs@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions