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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to