diff options
author | jimharris <jimharris@FreeBSD.org> | 2016-01-07 15:58:44 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2016-01-07 15:58:44 +0000 |
commit | e08430cb29a25fe582500f3fafe4f32d6cde399f (patch) | |
tree | 1b608176cb9e4f7878f42d2fd963cfe5b6dd1ee4 /sys/dev/nvd | |
parent | ede43877c5d560c381941e8cef63a7bc4a0bc609 (diff) | |
download | FreeBSD-src-e08430cb29a25fe582500f3fafe4f32d6cde399f.zip FreeBSD-src-e08430cb29a25fe582500f3fafe4f32d6cde399f.tar.gz |
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
Diffstat (limited to 'sys/dev/nvd')
-rw-r--r-- | sys/dev/nvd/nvd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c index e6d4c0c..7d78a8c 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 |