Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171492
b: refs/heads/master
c: 9e06759
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 11, 2009
1 parent b4da478 commit f4d4c68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 254245d23396aca1f9100d500163d7bd6019ab6f
refs/heads/master: 9e067597ee0e51a07bc158e9e2703ca676920e8b
13 changes: 6 additions & 7 deletions trunk/net/8021q/vlanproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,17 @@ int vlan_proc_rem_dev(struct net_device *vlandev)

/* start read of /proc/net/vlan/config */
static void *vlan_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(dev_base_lock)
__acquires(rcu)
{
struct net_device *dev;
struct net *net = seq_file_net(seq);
loff_t i = 1;

read_lock(&dev_base_lock);

rcu_read_lock();
if (*pos == 0)
return SEQ_START_TOKEN;

for_each_netdev(net, dev) {
for_each_netdev_rcu(net, dev) {
if (!is_vlan_dev(dev))
continue;

Expand All @@ -234,7 +233,7 @@ static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos)
if (v == SEQ_START_TOKEN)
dev = net_device_entry(&net->dev_base_head);

for_each_netdev_continue(net, dev) {
for_each_netdev_continue_rcu(net, dev) {
if (!is_vlan_dev(dev))
continue;

Expand All @@ -245,9 +244,9 @@ static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void vlan_seq_stop(struct seq_file *seq, void *v)
__releases(dev_base_lock)
__releases(rcu)
{
read_unlock(&dev_base_lock);
rcu_read_unlock();
}

static int vlan_seq_show(struct seq_file *seq, void *v)
Expand Down

0 comments on commit f4d4c68

Please sign in to comment.