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
This commit is contained in:
Jim Harris 2016-01-07 15:58:44 +00:00
parent 8fe5c0d286
commit 26ca317aef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293321

View File

@ -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