summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Williams2008-06-28 00:31:53 +0200
committerNeil Brown2008-06-28 00:31:53 +0200
commitc4e5ac0a22e664eecf29249553cf16c2433f5f25 (patch)
tree898a3b7f4b80d54d15d5b415397b1f4dd588e116 /include
parentmd: kill STRIPE_OP_IO flag (diff)
downloadkernel-qcow2-linux-c4e5ac0a22e664eecf29249553cf16c2433f5f25.tar.gz
kernel-qcow2-linux-c4e5ac0a22e664eecf29249553cf16c2433f5f25.tar.xz
kernel-qcow2-linux-c4e5ac0a22e664eecf29249553cf16c2433f5f25.zip
md: use stripe_head_state in ops_run_io()
From: Dan Williams <dan.j.williams@intel.com> In handle_stripe after taking sh->lock we sample some bits into 's' (struct stripe_head_state): s.syncing = test_bit(STRIPE_SYNCING, &sh->state); s.expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state); s.expanded = test_bit(STRIPE_EXPAND_READY, &sh->state); Use these values from 's' in ops_run_io() rather than re-sampling the bits. This ensures a consistent snapshot (as seen under sh->lock) is used. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions