if (atomic_read(&reg->pending)) { /* check race */ spin_unlock_irqrestore(&rh->region_lock, flags); return; } 
static void rh_dec(struct region_hash *rh, region_t region){	unsigned long flags;	struct region *reg;	int should_wake = 0;	read_lock(&rh->hash_lock);	reg = __rh_lookup(rh, region);	read_unlock(&rh->hash_lock);	if (atomic_dec_and_test(&reg->pending)) {		spin_lock_irqsave(&rh->region_lock, flags);		if (reg->state == RH_RECOVERING) {			list_add_tail(&reg->list, &rh->quiesced_regions);		} else {			reg->state = RH_CLEAN;			list_add(&reg->list, &rh->clean_regions);		}		spin_unlock_irqrestore(&rh->region_lock, flags);		should_wake = 1;	}	if (should_wake)		wake();}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/844e8d904a7c1446e3f040683b4a0645c3eb168f/dm-raid1.c/buggy/drivers/md/dm-raid1.c