From 26ca317aef1ba366f08136da9342e99e525383fa Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 7 Jan 2016 15:58:44 +0000 Subject: [PATCH] nvd: skip BIO_ORDERED logic when bio fails submission This ensures the bio flags are not read after biodone(). The ordering will still be enforced, after the bio is submitted successfully. MFC after: 3 days Sponsored by: Intel --- sys/dev/nvd/nvd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c index e6d4c0cb3be..7d78a8ca52c 100644 --- a/sys/dev/nvd/nvd.c +++ b/sys/dev/nvd/nvd.c @@ -215,6 +215,7 @@ nvd_bioq_process(void *arg, int pending) bp->bio_flags |= BIO_ERROR; bp->bio_resid = bp->bio_bcount; biodone(bp); + continue; } #ifdef BIO_ORDERED