case 1: 
case 0: 
void raid1_quiesce(mddev_t *mddev, int state){	conf_t *conf = mddev_to_conf(mddev);	switch(state) {	case 0:		spin_lock_irq(&conf->resync_lock);		conf->barrier++;		wait_event_lock_irq(conf->wait_idle, !conf->nr_pending,				    conf->resync_lock, raid1_unplug(mddev->queue));		spin_unlock_irq(&conf->resync_lock);		break;	case 1:		spin_lock_irq(&conf->resync_lock);		conf->barrier--;		spin_unlock_irq(&conf->resync_lock);		wake_up(&conf->wait_resume);		wake_up(&conf->wait_idle);		break;	}	if (mddev->thread) {		if (mddev->bitmap)			mddev->thread->timeout = mddev->bitmap->daemon_sleep * HZ;		else			mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT;		md_wakeup_thread(mddev->thread);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/9e6603da9b9cfb14a6aca3845227f8c59f7eeb9b/raid1.c/buggy/drivers/md/raid1.c