summaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r--block/blk-sysfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index fa831cb2fc30..b315e62cc914 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -677,6 +677,14 @@ static struct queue_sysfs_entry queue_wb_lat_entry = {
677 .store = queue_wb_lat_store, 677 .store = queue_wb_lat_store,
678}; 678};
679 679
680#ifdef CONFIG_BLK_DEV_THROTTLING_LOW
681static struct queue_sysfs_entry throtl_sample_time_entry = {
682 .attr = {.name = "throttle_sample_time", .mode = S_IRUGO | S_IWUSR },
683 .show = blk_throtl_sample_time_show,
684 .store = blk_throtl_sample_time_store,
685};
686#endif
687
680static struct attribute *default_attrs[] = { 688static struct attribute *default_attrs[] = {
681 &queue_requests_entry.attr, 689 &queue_requests_entry.attr,
682 &queue_ra_entry.attr, 690 &queue_ra_entry.attr,
@@ -710,6 +718,9 @@ static struct attribute *default_attrs[] = {
710 &queue_dax_entry.attr, 718 &queue_dax_entry.attr,
711 &queue_wb_lat_entry.attr, 719 &queue_wb_lat_entry.attr,
712 &queue_poll_delay_entry.attr, 720 &queue_poll_delay_entry.attr,
721#ifdef CONFIG_BLK_DEV_THROTTLING_LOW
722 &throtl_sample_time_entry.attr,
723#endif
713 NULL, 724 NULL,
714}; 725};
715 726