Merge tag 'for-4.17/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / md / dm-table.c
index f20fbc9..0589a4d 100644 (file)
@@ -1885,7 +1885,7 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
        q->limits = *limits;
 
        if (!dm_table_supports_discards(t)) {
-               queue_flag_clear_unlocked(QUEUE_FLAG_DISCARD, q);
+               blk_queue_flag_clear(QUEUE_FLAG_DISCARD, q);
                /* Must also clear discard limits... */
                q->limits.max_discard_sectors = 0;
                q->limits.max_hw_discard_sectors = 0;
@@ -1893,10 +1893,10 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
                q->limits.discard_alignment = 0;
                q->limits.discard_misaligned = 0;
        } else
-               queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, q);
+               blk_queue_flag_set(QUEUE_FLAG_DISCARD, q);
 
        if (dm_table_supports_secure_erase(t))
-               queue_flag_set_unlocked(QUEUE_FLAG_SECERASE, q);
+               blk_queue_flag_set(QUEUE_FLAG_SECERASE, q);
 
        if (dm_table_supports_flush(t, (1UL << QUEUE_FLAG_WC))) {
                wc = true;
@@ -1906,15 +1906,15 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
        blk_queue_write_cache(q, wc, fua);
 
        if (dm_table_supports_dax(t))
-               queue_flag_set_unlocked(QUEUE_FLAG_DAX, q);
+               blk_queue_flag_set(QUEUE_FLAG_DAX, q);
        if (dm_table_supports_dax_write_cache(t))
                dax_write_cache(t->md->dax_dev, true);
 
        /* Ensure that all underlying devices are non-rotational. */
        if (dm_table_all_devices_attribute(t, device_is_nonrot))
-               queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);
+               blk_queue_flag_set(QUEUE_FLAG_NONROT, q);
        else
-               queue_flag_clear_unlocked(QUEUE_FLAG_NONROT, q);
+               blk_queue_flag_clear(QUEUE_FLAG_NONROT, q);
 
        if (!dm_table_supports_write_same(t))
                q->limits.max_write_same_sectors = 0;
@@ -1922,9 +1922,9 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
                q->limits.max_write_zeroes_sectors = 0;
 
        if (dm_table_all_devices_attribute(t, queue_supports_sg_merge))
-               queue_flag_clear_unlocked(QUEUE_FLAG_NO_SG_MERGE, q);
+               blk_queue_flag_clear(QUEUE_FLAG_NO_SG_MERGE, q);
        else
-               queue_flag_set_unlocked(QUEUE_FLAG_NO_SG_MERGE, q);
+               blk_queue_flag_set(QUEUE_FLAG_NO_SG_MERGE, q);
 
        dm_table_verify_integrity(t);
 
@@ -1935,7 +1935,7 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
         * have it set.
         */
        if (blk_queue_add_random(q) && dm_table_all_devices_attribute(t, device_is_not_random))
-               queue_flag_clear_unlocked(QUEUE_FLAG_ADD_RANDOM, q);
+               blk_queue_flag_clear(QUEUE_FLAG_ADD_RANDOM, q);
 }
 
 unsigned int dm_table_get_num_targets(struct dm_table *t)