Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vioblk: Handle poisoned descriptors. Just a workaround

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information...
commit 8a970a14a21389af30b0ebae7d16ffacba7f4f22 1 parent fd7f186
@xl0 xl0 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 virtio_blk/vioblk.c
View
7 virtio_blk/vioblk.c
@@ -680,6 +680,13 @@ vioblk_int_handler(caddr_t arg1, caddr_t arg2)
uint8_t status = req->status;
uint32_t type = req->hdr.type;
+ if (req->xfer == (void * )VIOBLK_POISON) {
+ dev_err(sc->sc_dev, CE_WARN, "Poisoned descriptor!");
+ virtio_free_chain(ve);
+ return (DDI_INTR_CLAIMED);
+ }
+
+
req->xfer = (void *) VIOBLK_POISON;
/* syncing status */
Please sign in to comment.
Something went wrong with that request. Please try again.