summaryrefslogtreecommitdiff
path: root/sys/dev/xen/blkfront/blkfront.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2020-02-07 09:22:08 +0000
committerScott Long <scottl@FreeBSD.org>2020-02-07 09:22:08 +0000
commitd176b8039e91164cd25271ff6191a4fb1a03fe97 (patch)
treed1382f2fb54cb240d3aeda803ae80070bf8ecf13 /sys/dev/xen/blkfront/blkfront.c
parenta2abae8dc92a5778b3405cfbc1f20eaf7a067074 (diff)
Notes
Diffstat (limited to 'sys/dev/xen/blkfront/blkfront.c')
-rw-r--r--sys/dev/xen/blkfront/blkfront.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c
index ae82f0cd022b..d20fc32e66b6 100644
--- a/sys/dev/xen/blkfront/blkfront.c
+++ b/sys/dev/xen/blkfront/blkfront.c
@@ -399,7 +399,9 @@ xbd_bio_command(struct xbd_softc *sc)
panic("flush request, but no flush support available");
break;
default:
- panic("unknown bio command %d", bp->bio_cmd);
+ biofinish(bp, NULL, EOPNOTSUPP);
+ xbd_enqueue_cm(cm, XBD_Q_FREE);
+ return (NULL);
}
return (cm);