Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131724
b: refs/heads/master
c: 29f8ea8
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Feb 24, 2009
1 parent 2d00d58 commit 7829e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 612262a53352af839a14b3395975a3440c95080a
refs/heads/master: 29f8ea8ab09bad0c3c0d67964559d27643e97903
7 changes: 4 additions & 3 deletions trunk/drivers/ieee1394/nodemgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,8 @@ static void nodemgr_update_node(struct node_entry *ne, struct csr1212_csr *csr,
csr1212_destroy_csr(csr);
}

/* Mark the node current */
/* Finally, mark the node current */
smp_wmb();
ne->generation = generation;

if (ne->in_limbo) {
Expand Down Expand Up @@ -1798,7 +1799,7 @@ void hpsb_node_fill_packet(struct node_entry *ne, struct hpsb_packet *packet)
{
packet->host = ne->host;
packet->generation = ne->generation;
barrier();
smp_rmb();
packet->node_id = ne->nodeid;
}

Expand All @@ -1807,7 +1808,7 @@ int hpsb_node_write(struct node_entry *ne, u64 addr,
{
unsigned int generation = ne->generation;

barrier();
smp_rmb();
return hpsb_write(ne->host, ne->nodeid, generation,
addr, buffer, length);
}
Expand Down

0 comments on commit 7829e32

Please sign in to comment.