dm stats: add support for request-based DM devices
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 9 Jun 2015 21:22:49 +0000 (17:22 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jun 2015 16:40:41 +0000 (12:40 -0400)
This makes it possible to use dm stats with DM multipath.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-stats.c
drivers/md/dm.c

index faf1071..8a8b48f 100644 (file)
@@ -1155,11 +1155,6 @@ int dm_stats_message(struct mapped_device *md, unsigned argc, char **argv,
 {
        int r;
 
-       if (dm_request_based(md)) {
-               DMWARN("Statistics are only supported for bio-based devices");
-               return -EOPNOTSUPP;
-       }
-
        /* All messages here must start with '@' */
        if (!strcasecmp(argv[0], "@stats_create"))
                r = message_stats_create(md, argc, argv, result, maxlen);
diff --cc drivers/md/dm.c
Simple merge