nvd: do not wait for previous bios before submitting ordered bio

Still wait until all in-flight bios (including the ordered bio)
complete before processing more bios from the queue.

MFC after:	3 days
Sponsored by:	Intel
This commit is contained in:
Jim Harris 2016-01-07 15:57:17 +00:00
parent 454f163b9f
commit 8fe5c0d286
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293320

View File

@ -204,19 +204,6 @@ nvd_bioq_process(void *arg, int pending)
if (bp == NULL)
break;
#ifdef BIO_ORDERED
/*
* BIO_ORDERED flag dictates that all outstanding bios
* must be completed before processing the bio with
* BIO_ORDERED flag set.
*/
if (bp->bio_flags & BIO_ORDERED) {
while (ndisk->cur_depth > 0) {
pause("nvd flush", 1);
}
}
#endif
bp->bio_driver1 = NULL;
atomic_add_int(&ndisk->cur_depth, 1);