projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf callchain: Use global caching provided by libunwind
[firefly-linux-kernel-4.4.55.git]
/
block
/
blk-mq-sysfs.c
diff --git
a/block/blk-mq-sysfs.c
b/block/blk-mq-sysfs.c
index ed521786755570989dad96a14613be5ae80e7d3f..371d8800b48a631c9807bce20f1e973a4c3a35b8 100644
(file)
--- a/
block/blk-mq-sysfs.c
+++ b/
block/blk-mq-sysfs.c
@@
-402,6
+402,12
@@
static void blk_mq_sysfs_init(struct request_queue *q)
}
}
+/* see blk_register_queue() */
+void blk_mq_finish_init(struct request_queue *q)
+{
+ percpu_ref_switch_to_percpu(&q->mq_usage_counter);
+}
+
int blk_mq_register_disk(struct gendisk *disk)
{
struct device *dev = disk_to_dev(disk);