Date: Fri, 01 Sep 2017 10:09:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221973] cam iosched: BIO_ZONE commands probably shouldn't use the read queue Message-ID: <bug-221973-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221973 Bug ID: 221973 Summary: cam iosched: BIO_ZONE commands probably shouldn't use the read queue Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: fk@fabiankeil.de Flags: mfc-stable11? Created attachment 185970 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185970&action= =3Dedit cam iosched: Use the write queue for BIO_ZONE commands The attached patch lets iosched put BIO_ZONE commands on the write queue so they can't get executed ahead of writes that were sent after them. I'm not completely sure but believe that this is less likely to cause probl= ems than putting them one the read queue. As I currently don't use SMR drives the patch hasn't been properly tested. It prevents the kernel message: kernel: Found bio_cmd =3D 0x9 which cam_iosched_next_bio() emits when finding commands other than BIO_READ in the read queue, though. The fact that BIO_ZONE commands are sometimes sent to non-SMR drives may indicate another problem but I haven't looked into this yet. Obtained from: ElectroBSD --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221973-8>