Skip to content

Commit 46cdc45

Browse files
committed
block: fix async_depth sysfs interface for mq-deadline
A previous commit added this feature, but it inadvertently used the wrong variable to show/store the setting from/to, victimized by copy/paste. Fix it up so that the async_depth sysfs interface reads and writes from the right setting. Fixes: 0775758 ("block/mq-deadline: Reserve 25% of scheduler tags for synchronous requests") Link: https://bugzilla.kernel.org/show_bug.cgi?id=215485 Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3ee859e commit 46cdc45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/mq-deadline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ SHOW_JIFFIES(deadline_write_expire_show, dd->fifo_expire[DD_WRITE]);
865865
SHOW_JIFFIES(deadline_prio_aging_expire_show, dd->prio_aging_expire);
866866
SHOW_INT(deadline_writes_starved_show, dd->writes_starved);
867867
SHOW_INT(deadline_front_merges_show, dd->front_merges);
868-
SHOW_INT(deadline_async_depth_show, dd->front_merges);
868+
SHOW_INT(deadline_async_depth_show, dd->async_depth);
869869
SHOW_INT(deadline_fifo_batch_show, dd->fifo_batch);
870870
#undef SHOW_INT
871871
#undef SHOW_JIFFIES
@@ -895,7 +895,7 @@ STORE_JIFFIES(deadline_write_expire_store, &dd->fifo_expire[DD_WRITE], 0, INT_MA
895895
STORE_JIFFIES(deadline_prio_aging_expire_store, &dd->prio_aging_expire, 0, INT_MAX);
896896
STORE_INT(deadline_writes_starved_store, &dd->writes_starved, INT_MIN, INT_MAX);
897897
STORE_INT(deadline_front_merges_store, &dd->front_merges, 0, 1);
898-
STORE_INT(deadline_async_depth_store, &dd->front_merges, 1, INT_MAX);
898+
STORE_INT(deadline_async_depth_store, &dd->async_depth, 1, INT_MAX);
899899
STORE_INT(deadline_fifo_batch_store, &dd->fifo_batch, 0, INT_MAX);
900900
#undef STORE_FUNCTION
901901
#undef STORE_INT

0 commit comments

Comments
 (0)