summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-stats.c
diff options
context:
space:
mode:
authorMikulas Patocka2015-06-09 23:22:49 +0200
committerMike Snitzer2015-06-17 18:40:41 +0200
commite262f34741522e0d821642e5449c6eeb512723fc (patch)
tree2f6608a34b9b1ef4c249267901d73a5e0d481cd0 /drivers/md/dm-stats.c
parentdm stats: collect and report histogram of IO latencies (diff)
downloadkernel-qcow2-linux-e262f34741522e0d821642e5449c6eeb512723fc.tar.gz
kernel-qcow2-linux-e262f34741522e0d821642e5449c6eeb512723fc.tar.xz
kernel-qcow2-linux-e262f34741522e0d821642e5449c6eeb512723fc.zip
dm stats: add support for request-based DM devices
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>
Diffstat (limited to 'drivers/md/dm-stats.c')
-rw-r--r--drivers/md/dm-stats.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c
index faf1071ef631..8a8b48fa901a 100644
--- a/drivers/md/dm-stats.c
+++ b/drivers/md/dm-stats.c
@@ -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);