projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0586942
)
block: avoid setting wbt_lat_usec to current value
author
Aleksei Zakharov
<
[email protected]
>
Mon, 11 Feb 2019 10:10:34 +0000
(13:10 +0300)
committer
Jens Axboe
<
[email protected]
>
Mon, 11 Feb 2019 15:20:14 +0000
(08:20 -0700)
There's no reason to set wbt min lat and freeze request queue
if current value is the same.
Reviewed-by: Johannes Thumshirn <
[email protected]
>
Signed-off-by: Aleksei Zakharov <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
block/blk-sysfs.c
patch
|
blob
|
history
diff --git
a/block/blk-sysfs.c
b/block/blk-sysfs.c
index 94e1b052abbce01a2ecc359ed32d621acf0a24ac..59685918167e51d80a2808861b3f2f7744dec3a7 100644
(file)
--- a/
block/blk-sysfs.c
+++ b/
block/blk-sysfs.c
@@
-468,6
+468,9
@@
static ssize_t queue_wb_lat_store(struct request_queue *q, const char *page,
else if (val >= 0)
val *= 1000ULL;
+ if (wbt_get_min_lat(q) == val)
+ return count;
+
/*
* Ensure that the queue is idled, in case the latency update
* ends up either enabling or disabling wbt completely. We can't