X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmd%2Fdm-table.c;h=94116eaf47099ccad9f8ca458afd3c4f1e835435;hb=66ee156078697cdc013d46aed3b2fee445c325a1;hp=51be53344214906593ec54dec6b6e8e1c018f369;hpb=b9fa38f75ea7e1f64bc29653ca9758303ce698e4;p=linux-2.6 diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 51be533442..94116eaf47 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -873,10 +873,11 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q) q->max_hw_sectors = t->limits.max_hw_sectors; q->seg_boundary_mask = t->limits.seg_boundary_mask; q->bounce_pfn = t->limits.bounce_pfn; + if (t->limits.no_cluster) - q->queue_flags &= ~(1 << QUEUE_FLAG_CLUSTER); + queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); else - q->queue_flags |= (1 << QUEUE_FLAG_CLUSTER); + queue_flag_set_unlocked(QUEUE_FLAG_CLUSTER, q); }