if (rdev->in_sync 
if (test_bit(In_sync, &rdev->flags) 
static void error(mddev_t *mddev, mdk_rdev_t *rdev){	char b[BDEVNAME_SIZE];	conf_t *conf = mddev_to_conf(mddev);	/*	 * If it is not operational, then we have already marked it as dead	 * else if it is the last working disks, ignore the error, let the	 * next level up know.	 * else mark the drive as failed	 */	if (rdev->in_sync	    && conf->working_disks == 1)		/*		 * Don't fail the drive, act as though we were just a		 * normal single drive		 */		return;	if (rdev->in_sync) {		mddev->degraded++;		conf->working_disks--;		/*		 * if recovery is running, make sure it aborts.		 */		set_bit(MD_RECOVERY_ERR, &mddev->recovery);	}	rdev->in_sync = 0;	rdev->faulty = 1;	mddev->sb_dirty = 1;	printk(KERN_ALERT "raid1: Disk failure on %s, disabling device. \n"		"	Operation continuing on %d devices\n",		bdevname(rdev->bdev,b), conf->working_disks);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b2d444d7ad975d555bb919601bcdc0e58975a40e/raid1.c/clean/drivers/md/raid1.c