FreeBSD Bugzilla – Attachment 185970 Details for
Bug 221973
cam iosched: BIO_ZONE commands probably shouldn't use the read queue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cam iosched: Use the write queue for BIO_ZONE commands
0006-cam-iosched-Use-the-write-queue-for-BIO_ZONE-commands.diff (text/plain), 1.16 KB, created by
Fabian Keil
on 2017-09-01 10:09:30 UTC
(
hide
)
Description:
cam iosched: Use the write queue for BIO_ZONE commands
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2017-09-01 10:09:30 UTC
Size:
1.16 KB
patch
obsolete
>From 93804ac316f708e322f0ee3ece0ea758905ad78d Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Thu, 10 Aug 2017 09:37:24 +0200 >Subject: [PATCH 6/8] cam iosched: Use the write queue for BIO_ZONE commands > >... so they can't get executed ahead of writes that were sent >after them. > >As a side effect this prevents the kernel message: >kernel: Found bio_cmd = 0x9 >which cam_iosched_next_bio() emits when finding commands >other than BIO_READ in the read queue. > >Obtained from: ElectroBSD >--- > sys/cam/cam_iosched.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c >index 7f04db03352e..77ad53269cd2 100644 >--- a/sys/cam/cam_iosched.c >+++ b/sys/cam/cam_iosched.c >@@ -1364,8 +1364,8 @@ cam_iosched_queue_work(struct cam_iosched_softc *isc, struct bio *bp) > #endif > } > #ifdef CAM_IOSCHED_DYNAMIC >- else if (do_dynamic_iosched && >- (bp->bio_cmd == BIO_WRITE || bp->bio_cmd == BIO_FLUSH)) { >+ else if (do_dynamic_iosched && (bp->bio_cmd == BIO_WRITE || >+ bp->bio_cmd == BIO_FLUSH || bp->bio_cmd == BIO_ZONE)) { > if (cam_iosched_sort_queue(isc)) > bioq_disksort(&isc->write_queue, bp); > else >-- >2.14.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221973
: 185970