Don't wait forever in nvme_poll(). Respect the timeout provided by a scsi_xfer.
authorkrw <krw@openbsd.org>
Mon, 15 Apr 2024 14:25:10 +0000 (14:25 +0000)
committerkrw <krw@openbsd.org>
Mon, 15 Apr 2024 14:25:10 +0000 (14:25 +0000)
commit549040881b0ea7678bc112fb70c95ced6d414c6c
treeb57feae149f2ab729276afe1b13f0066c147fbae
parentdf80715c2d78094143cc9a35e5514926011558ad
Don't wait forever in nvme_poll(). Respect the timeout provided by a scsi_xfer.
Define values for internal commands (identity and queue ops) that are polled.

Adapted from work by jdolecek@netbsd.

Feedback/suggestions deraadt@, testing by jca@, ok jmatthew@.
sys/dev/ic/nvme.c