]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351706:
authorWarner Losh <imp@FreeBSD.org>
Thu, 5 Sep 2019 23:13:44 +0000 (23:13 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 5 Sep 2019 23:13:44 +0000 (23:13 +0000)
commit4bddfcb5f15ee8c867c4767583cd1427520d3ae7
tree4e1589b93a1a259187e3e744419d510b16b8af5f
parented1586b14179d3fd120b382c663a3191adbe8b37
MFC r351706:

  In nvme_completion_poll, add a sanity check to make sure that we complete the
  polling within a second. Panic if we don't. All the commands that use this
  interface should typically complete within a few tens to hundreds of
  microseconds. Panic rather than return ETIMEDOUT because if the command
  somehow does later complete, it will randomly corrupt memory. Also, it helps
  to get a traceback from where the unexpected failure happens, rather than an
  infinite loop.
sys/dev/nvme/nvme_private.h