]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: use correct barrier types between accesses of nodeid and generation
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 26 Aug 2008 23:18:32 +0000 (01:18 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Feb 2009 13:51:26 +0000 (14:51 +0100)
commitb05fac23120baef62e61fdb8261bb81108f307c1
tree841538d670636493ccb4bd240739e934dd09fda1
parent8381b6c85140f02f52c8c3cdb93268669ae26640
ieee1394: use correct barrier types between accesses of nodeid and generation

A compiler barrier (explicit on the read side, implicit on the write
side) is not quite enough for what has to be accomplished here.  Use
hardware memory barriers on systems which need them.

(Of course a full fix of generation handling would require much more
than this.  The ieee1394 core's bus generation counter had to be tied to
the controller's bus generation counter; cf. Kristian's stack.  It's
just that I have other current business with the code around these
barrier()s, so why not do at least this small fix.)

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/nodemgr.c