[PATCH] firewire: fw-sbp2: enforce read order of device generation and node ID

2007-10-31 Thread Stefan Richter
Two fixes: - There was a small window where a login or reconnect job could use an already updated card generation with an outdated node ID. We better use the fw_device.generation here, not the fw_card.generation. - Insert a memory barrier to ensure that the device generation is read

[PATCH] firewire: fw-sbp2: enforce read order of device generation and node ID

2007-10-31 Thread Stefan Richter
Two fixes: - There was a small window where a login or reconnect job could use an already updated card generation with an outdated node ID. We better use the fw_device.generation here, not the fw_card.generation. - Insert a memory barrier to ensure that the device generation is read