summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2016-06-22 14:39:13 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2016-06-22 14:39:13 +0000
commite5616d65d0d2d8ef560ea0913a1675f5be2808a6 (patch)
tree07c4ea34b98293b24ce4217660f3eca7d6782c3c /Makefile
parenta97c79084421d8f9e865e7148f006cc39b78af3a (diff)
downloadsrc-test-e5616d65d0d2d8ef560ea0913a1675f5be2808a6.tar.gz
src-test-e5616d65d0d2d8ef560ea0913a1675f5be2808a6.zip
Fix a bug that caused da(4) peripheral drivers to not fully go away
after the underlying device went away. The problem was that callers who queue the GEOM resize provider event didn't check to make sure that the provider had not been withered. For the other equivalent case, g_new_provider_event(), the code checks to see whether the provider has been withered before queueing a g_new_provider_event() to the event thread. In some cases, a resize provider event would come through after the provider had been withered and all of the existing consumers had been orphaned. When the resize event triggered a taste of the provider, that would attach a new consumer to the now withered provider. The wither washer (g_wither_washer() would never be able to completely tear down the GEOM because of the consumers that were hanging around. The solution was to check the G_PF_WITHER provider flag before queueing the g_resize_provider_event(), and add an assert to g_resize_provider_event() to insure that it isn't called on a withered provider. sys/geom/geom_subr.c: In g_resize_provider(), don't try to continue if the G_PF_WITHER flag is set. In g_resize_provider_event(), add an assert that the G_PF_WITHER flag is not set. In g_access(), if a provider has an error, print out the name of the provider with the error. Sponsored by: Spectra Logic Approved by: re (marius) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=302087
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions