git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b721420
)
md/raid5: use seqcount to protect access to shape in make_request.
author
NeilBrown
<neilb@suse.de>
Tue, 27 Aug 2013 05:52:13 +0000
(15:52 +1000)
committer
NeilBrown
<neilb@suse.de>
Wed, 28 Aug 2013 06:58:36 +0000
(16:58 +1000)
make_request() access various shape parameters (raid_disks, chunk_size
etc) which might be changed by raid5_start_reshape().
If the later is called at and awkward time during the form, the wrong
stripe_head might be used.
So introduce a 'seqcount' and after finding a stripe_head make sure
there is no reason to expect that we got the wrong one.
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c
patch
|
blob
|
history
drivers/md/raid5.h
patch
|
blob
|
history
diff --cc
drivers/md/raid5.c
Simple merge
diff --cc
drivers/md/raid5.h
Simple merge