Lines Matching full:rcw
3337 int rcw, int expand) in schedule_reconstruction() argument
3343 if (rcw) { in schedule_reconstruction()
3346 * run rmw and allocates extra page for prexor. However, rcw is in schedule_reconstruction()
4147 int rmw = 0, rcw = 0, i; in handle_stripe_dirtying() local
4160 /* Calculate the real rcw later - for now make it in handle_stripe_dirtying()
4161 * look like rcw is cheaper in handle_stripe_dirtying()
4163 rcw = 1; rmw = 2; in handle_stripe_dirtying()
4164 pr_debug("force RCW rmw_level=%u, recovery_cp=%llu sh->sector=%llu\n", in handle_stripe_dirtying()
4188 rcw++; in handle_stripe_dirtying()
4190 rcw += 2*disks; in handle_stripe_dirtying()
4194 pr_debug("for sector %llu state 0x%lx, rmw=%d rcw=%d\n", in handle_stripe_dirtying()
4195 (unsigned long long)sh->sector, sh->state, rmw, rcw); in handle_stripe_dirtying()
4197 if ((rmw < rcw || (rmw == rcw && conf->rmw_level == PARITY_PREFER_RMW)) && rmw > 0) { in handle_stripe_dirtying()
4253 if ((rcw < rmw || (rcw == rmw && conf->rmw_level != PARITY_PREFER_RMW)) && rcw > 0) { in handle_stripe_dirtying()
4256 rcw = 0; in handle_stripe_dirtying()
4264 rcw++; in handle_stripe_dirtying()
4278 if (rcw && !mddev_is_dm(conf->mddev)) in handle_stripe_dirtying()
4280 "raid5 rcw %llu %d %d %d", in handle_stripe_dirtying()
4281 (unsigned long long)sh->sector, rcw, qread, in handle_stripe_dirtying()
4285 if (rcw > disks && rmw > disks && in handle_stripe_dirtying()
4300 (s->locked == 0 && (rcw == 0 || rmw == 0) && in handle_stripe_dirtying()
4302 schedule_reconstruction(sh, s, rcw == 0, 0); in handle_stripe_dirtying()