Page MenuHomeFreeBSD

In g_newprovider_event() return if G_P_WITHER is set
ClosedPublic

Authored by trasz on Nov 23 2020, 1:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 7, 7:48 AM
Unknown Object (File)
Sat, May 2, 4:58 AM
Unknown Object (File)
Fri, May 1, 7:49 PM
Unknown Object (File)
Sat, Apr 25, 7:22 AM
Unknown Object (File)
Apr 16 2026, 7:13 AM
Unknown Object (File)
Apr 11 2026, 1:41 AM
Unknown Object (File)
Apr 10 2026, 9:38 PM
Unknown Object (File)
Apr 9 2026, 10:59 PM
Subscribers

Details

Summary

In g_newprovider_event() return if G_P_WITHER is set.

This fixes a failed assertion in scenario where the provider
disappears, disk_gone() gets called, and at the exact same
time something else closes the device node triggering a retaste.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.Nov 23 2020, 1:21 PM
trasz created this revision.

Looks good. Few places that call it also check for G_PF_WITHER, but they are using g_post_event() for it, that opens a race window.

This revision is now accepted and ready to land.Nov 23 2020, 2:42 PM