block: fix async_depth sysfs interface for mq-deadline
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Jan 2022 17:28:13 +0000 (10:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:25 +0000 (11:05 +0100)
commit269fbc268633c1ee7da992dd9c58890d9906d120
tree1a946cc46907f6bc1eb601d55af451086c4b570e
parent1e95e6dab0d17826631b37f3c3bdb62d57d43b4f
block: fix async_depth sysfs interface for mq-deadline

commit 46cdc45acb089c811d9a54fd50af33b96e5fae9d upstream.

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: 07757588e507 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/mq-deadline.c