aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-15 16:17:55 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-15 16:17:55 +0000
commit717bff5d854109e3de78da190148deb9ab06e873 (patch)
treea933a590c860fd5d620940620f568fc86cab79e4 /sys/cam/nvme/nvme_da.c
parent834804f3fe0f9b0492ab67f8b4af064f6c5148ab (diff)
downloadsrc-717bff5d854109e3de78da190148deb9ab06e873.tar.gz
src-717bff5d854109e3de78da190148deb9ab06e873.zip
Update comment to reflect actual default timeout.
Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=324630
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index 8e4de784c3a1..bb55842d5a80 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -189,7 +189,7 @@ nda_nvme_flush(struct nda_softc *softc, struct ccb_nvmeio *nvmeio)
CAM_DIR_NONE, /* flags */
NULL, /* data_ptr */
0, /* dxfer_len */
- nda_default_timeout * 1000); /* timeout 5s */
+ nda_default_timeout * 1000); /* timeout 30s */
nvme_ns_flush_cmd(&nvmeio->cmd, softc->nsid);
}
@@ -203,7 +203,7 @@ nda_nvme_trim(struct nda_softc *softc, struct ccb_nvmeio *nvmeio,
CAM_DIR_OUT, /* flags */
payload, /* data_ptr */
num_ranges * sizeof(struct nvme_dsm_range), /* dxfer_len */
- nda_default_timeout * 1000); /* timeout 5s */
+ nda_default_timeout * 1000); /* timeout 30s */
nvme_ns_trim_cmd(&nvmeio->cmd, softc->nsid, num_ranges);
}
@@ -217,7 +217,7 @@ nda_nvme_write(struct nda_softc *softc, struct ccb_nvmeio *nvmeio,
CAM_DIR_OUT, /* flags */
payload, /* data_ptr */
len, /* dxfer_len */
- nda_default_timeout * 1000); /* timeout 5s */
+ nda_default_timeout * 1000); /* timeout 30s */
nvme_ns_write_cmd(&nvmeio->cmd, softc->nsid, lba, count);
}
@@ -246,7 +246,7 @@ nda_nvme_rw_bio(struct nda_softc *softc, struct ccb_nvmeio *nvmeio,
flags, /* flags */
payload, /* data_ptr */
bp->bio_bcount, /* dxfer_len */
- nda_default_timeout * 1000); /* timeout 5s */
+ nda_default_timeout * 1000); /* timeout 30s */
nvme_ns_rw_cmd(&nvmeio->cmd, rwcmd, softc->nsid, lba, count);
}