Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177570623
D61567.1794767986.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
676 B
Referenced Files
None
Subscribers
None
D61567.1794767986.diff
View Options
diff --git a/sys/dev/nvmf/controller/nvmft_controller.c b/sys/dev/nvmf/controller/nvmft_controller.c
--- a/sys/dev/nvmf/controller/nvmft_controller.c
+++ b/sys/dev/nvmf/controller/nvmft_controller.c
@@ -131,11 +131,9 @@
callout_stop(&ctrlr->ka_timer);
ctrlr->ka_sbt = 0;
} else {
- /*
- * Round up to 1 second matching granularity
- * advertised in cdata.
- */
- ctrlr->ka_sbt = mstosbt(roundup(kato, 1000));
+ /* Round up to granularity advertised in cdata. */
+ ctrlr->ka_sbt = mstosbt(roundup(kato,
+ le16toh(ctrlr->cdata.kas) * 100));
callout_reset_sbt(&ctrlr->ka_timer, ctrlr->ka_sbt, 0,
nvmft_keep_alive_timer, ctrlr, C_HARDCLOCK);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 6:39 PM (22 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41746194
Default Alt Text
D61567.1794767986.diff (676 B)
Attached To
Mode
D61567: nvmft: When setting the KeepAlive timer, honor granularity from cdata
Attached
Detach File
Event Timeline