Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146394882
D55523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D55523.diff
View Options
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -782,11 +782,19 @@
{
uintptr_t buftype;
+ /*
+ * Note: In theory, we could send CDAI_TYPE_NVME_* events here,
+ * but instead the rescan code only sends more specific
+ * AC_GETDEV_CHANGED. There's no way to generically get
+ * notifications of changes to these structures from the drive
+ * (though we could notice with memcmp). The automation in NVME
+ * is at a much more granular level, so we leverage that.
+ */
softc = periph->softc;
buftype = (uintptr_t)arg;
if (buftype == CDAI_TYPE_PHYS_PATH) {
disk_attr_changed(softc->disk, "GEOM::physpath",
- M_NOWAIT);
+ M_WAITOK);
}
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 3, 8:48 AM (5 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29007439
Default Alt Text
D55523.diff (768 B)
Attached To
Mode
D55523: nda: Assume all cases in ndaasync can sleep
Attached
Detach File
Event Timeline
Log In to Comment