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)
Sun, Dec 7, 4:51 PM
Unknown Object (File)
Wed, Nov 26, 11:10 AM
Unknown Object (File)
Sun, Nov 23, 2:37 AM
Unknown Object (File)
Sat, Nov 22, 1:33 PM
Unknown Object (File)
Nov 19 2025, 6:39 AM
Unknown Object (File)
Nov 7 2025, 5:33 AM
Unknown Object (File)
Oct 30 2025, 7:12 PM
Unknown Object (File)
Oct 29 2025, 3:41 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