summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lg.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-12-23 10:17:53 +1100
committerNeilBrown <neilb@suse.de>2011-12-23 10:17:53 +1100
commitdd054fce88d33da1aa81d018db75b91b102a6959 (patch)
tree9528caece6b444ebcdb41453b60a1bb4054a1a4d /drivers/hid/hid-lg.c
parent9a3e1101b827a59ac9036a672f5fa8d5279d0fe2 (diff)
downloadop-kernel-dev-dd054fce88d33da1aa81d018db75b91b102a6959.zip
op-kernel-dev-dd054fce88d33da1aa81d018db75b91b102a6959.tar.gz
md/raid5: handle activation of replacement device when recovery completes.
When recovery completes - as reported by a call to ->spare_active, we clear In_sync on the original and set it on the replacement. Then when the original gets removed we move the replacement from 'replacement' to 'rdev'. This could race with other code that is looking at these pointers, so we use memory barriers and careful ordering to ensure that a reader might see one device twice, but never no devices. Then the readers guard against using both devices, which could only happen when writing. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/hid/hid-lg.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud