svn commit: r293321 - head/sys/dev/nvd

Jim Harris jimharris at FreeBSD.org
Thu Jan 7 15:58:45 UTC 2016


Author: jimharris
Date: Thu Jan  7 15:58:44 2016
New Revision: 293321
URL: https://svnweb.freebsd.org/changeset/base/293321

Log:
  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

Modified:
  head/sys/dev/nvd/nvd.c

Modified: head/sys/dev/nvd/nvd.c
==============================================================================
--- head/sys/dev/nvd/nvd.c	Thu Jan  7 15:57:17 2016	(r293320)
+++ head/sys/dev/nvd/nvd.c	Thu Jan  7 15:58:44 2016	(r293321)
@@ -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


More information about the svn-src-head mailing list