summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJonathan E Brassow2005-11-22 06:32:37 +0100
committerLinus Torvalds2005-11-22 18:14:31 +0100
commit7692c5dd48026d952199c2b97c3418f927cc0407 (patch)
treef198721b3b65a782ae0ed7400120cc45e0ce87c1 /scripts
parent[PATCH] device-mapper snapshot: bio_list fix (diff)
downloadkernel-qcow2-linux-7692c5dd48026d952199c2b97c3418f927cc0407.tar.gz
kernel-qcow2-linux-7692c5dd48026d952199c2b97c3418f927cc0407.tar.xz
kernel-qcow2-linux-7692c5dd48026d952199c2b97c3418f927cc0407.zip
[PATCH] device-mapper raid1: drop mark_region spinlock fix
The spinlock region_lock is held while calling mark_region which can sleep. Drop the spinlock before calling that function. A region's state and inclusion in the clean list are altered by rh_inc and rh_dec. The state variable is set to RH_CLEAN in rh_dec, but only if 'pending' is zero. It is set to RH_DIRTY in rh_inc, but not if it is already so. The changes to 'pending', the state, and the region's inclusion in the clean list need to be atomicly. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions