On 2017/2/16 上午12:35, colyli@xxxxxxx wrote: [snip] > > @@ -955,11 +1014,14 @@ static int get_unqueued_pending(struct r1conf *conf) > int idx, ret; > > for (ret = 0, idx = 0; idx < BARRIER_BUCKETS_NR; idx++) > - ret += conf->nr_pending[idx] - conf->nr_queued[idx]; > + ret += atomic_read(&conf->nr_pending[idx]) - > + conf->nr_queued[idx]; > > return ret; > } > > +#define FREEZE_TIMEOUT_JIFFIES 10 > + The above line will be removed in next version, please ignore it. [snip] Coly -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html