]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/block/xen-blkfront.c
block: kill QUEUE_ORDERED_BY_TAG
[mirror_ubuntu-bionic-kernel.git] / drivers / block / xen-blkfront.c
index ac1b682edecb362831eb32e7fd09faaff69da428..50ec6f834996320208b5c2f11319b71e09cc7900 100644 (file)
@@ -424,8 +424,7 @@ static int xlvbd_barrier(struct blkfront_info *info)
        const char *barrier;
 
        switch (info->feature_barrier) {
-       case QUEUE_ORDERED_DRAIN:       barrier = "enabled (drain)"; break;
-       case QUEUE_ORDERED_TAG:         barrier = "enabled (tag)"; break;
+       case QUEUE_ORDERED_DRAIN:       barrier = "enabled"; break;
        case QUEUE_ORDERED_NONE:        barrier = "disabled"; break;
        default:                        return -EINVAL;
        }
@@ -1078,8 +1077,7 @@ static void blkfront_connect(struct blkfront_info *info)
         * we're dealing with a very old backend which writes
         * synchronously; draining will do what needs to get done.
         *
-        * If there are barriers, then we can do full queued writes
-        * with tagged barriers.
+        * If there are barriers, then we use flush.
         *
         * If barriers are not supported, then there's no much we can
         * do, so just set ordering to NONE.
@@ -1087,7 +1085,7 @@ static void blkfront_connect(struct blkfront_info *info)
        if (err)
                info->feature_barrier = QUEUE_ORDERED_DRAIN;
        else if (barrier)
-               info->feature_barrier = QUEUE_ORDERED_TAG;
+               info->feature_barrier = QUEUE_ORDERED_DRAIN_FLUSH;
        else
                info->feature_barrier = QUEUE_ORDERED_NONE;