Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 3839182

Browse files
committed
XANMOD: blk-wbt: Set wbt_default_latency_nsec() to 1.5msec
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
1 parent ac36eb5 commit 3839182

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

block/blk-wbt.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -730,14 +730,8 @@ EXPORT_SYMBOL_GPL(wbt_enable_default);
730730

731731
u64 wbt_default_latency_nsec(struct request_queue *q)
732732
{
733-
/*
734-
* We default to 2msec for non-rotational storage, and 75msec
735-
* for rotational storage.
736-
*/
737-
if (blk_queue_nonrot(q))
738-
return 2000000ULL;
739-
else
740-
return 75000000ULL;
733+
/* XanMod defaults to 1.5msec for any type of storage */
734+
return 1500000ULL;
741735
}
742736

743737
static int wbt_data_dir(const struct request *rq)

0 commit comments

Comments
 (0)