summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-06-26 10:19:52 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-06-26 10:19:52 +1000
commita9355d0ad2518094c24b026059025af6dd8698e1 (patch)
treed473c24226fd2a8ebfc0fcdd7f9565ef7064a916
parentfb8dc63d47c2966b3eb5d35a3a633fd26ba56f89 (diff)
misc:down_nowait-drivers_md_dm-raid1
down_trylock -> down_try in drivers/md/dm-raid1.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index ff05fe893083..137f0241aed0 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -587,7 +587,7 @@ static void rh_recovery_prepare(struct region_hash *rh)
/* Extra reference to avoid race with rh_stop_recovery */
atomic_inc(&rh->recovery_in_flight);
- while (!down_trylock(&rh->recovery_count)) {
+ while (down_try(&rh->recovery_count)) {
atomic_inc(&rh->recovery_in_flight);
if (__rh_recovery_prepare(rh) <= 0) {
atomic_dec(&rh->recovery_in_flight);