Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177467622
D61416.1794494804.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
704 B
Referenced Files
None
Subscribers
None
D61416.1794494804.diff
View Options
diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c
--- a/sys/cam/scsi/scsi_pass.c
+++ b/sys/cam/scsi/scsi_pass.c
@@ -2074,11 +2074,14 @@
/*
* If this is not a queued CCB (i.e. it is an immediate CCB),
* then it is already done. We need to put it on the done
- * queue for the user to fetch.
+ * queue for the user to fetch, and notify any waiters so
+ * they know there is a completed CCB to collect.
*/
if ((fc & XPT_FC_QUEUED) == 0) {
TAILQ_REMOVE(&softc->active_queue, io_req, links);
TAILQ_INSERT_TAIL(&softc->done_queue, io_req, links);
+ selwakeuppri(&softc->read_select, PRIBIO);
+ KNOTE_LOCKED(&softc->read_select.si_note, 0);
}
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 2:46 PM (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41667031
Default Alt Text
D61416.1794494804.diff (704 B)
Attached To
Mode
D61416: pass(4): Wake select/kqueue waiters when an immediate CCB completes
Attached
Detach File
Event Timeline