lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1398783234-7062-4-git-send-email-tom.leiming@gmail.com>
Date:	Tue, 29 Apr 2014 22:53:53 +0800
From:	Ming Lei <tom.leiming@...il.com>
To:	Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org,
	Kent Overstreet <kmo@...erainc.com>
Cc:	Christoph Hellwig <hch@....de>, Shaohua Li <shli@...nel.org>,
	Nicholas Bellinger <nab@...ux-iscsi.org>,
	Nick Swenson <nks@...erainc.com>,
	Ming Lei <tom.leiming@...il.com>
Subject: [PATCH 3/3] blk-mq: add percpu_ida kobjects

So that the percpu_ida performance can be monitored.

Signed-off-by: Ming Lei <tom.leiming@...il.com>
---
 block/blk-mq-sysfs.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/block/blk-mq-sysfs.c b/block/blk-mq-sysfs.c
index 8145b5b..4171ae2 100644
--- a/block/blk-mq-sysfs.c
+++ b/block/blk-mq-sysfs.c
@@ -329,6 +329,8 @@ void blk_mq_unregister_disk(struct gendisk *disk)
 			kobject_del(&ctx->kobj);
 			kobject_put(&ctx->kobj);
 		}
+		percpu_ida_kobject_del(&hctx->tags->free_tags);
+		percpu_ida_kobject_del(&hctx->tags->reserved_tags);
 		kobject_del(&hctx->kobj);
 		kobject_put(&hctx->kobj);
 	}
@@ -362,6 +364,11 @@ int blk_mq_register_disk(struct gendisk *disk)
 		if (ret)
 			break;
 
+		percpu_ida_kobject_add(&hctx->tags->free_tags,
+				&hctx->kobj, "free_tags");
+		percpu_ida_kobject_add(&hctx->tags->reserved_tags,
+				&hctx->kobj, "reserved_tags");
+
 		if (!hctx->nr_ctx)
 			continue;
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ