diff options
author | Mark Johnston <markj@FreeBSD.org> | 2017-03-29 19:30:22 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2017-03-29 19:30:22 +0000 |
commit | c1ab409cba45d8e79ca9d94c8f65c113d548a1df (patch) | |
tree | 7c021d41495d7e40fcb2d0da9907862eb0b89bab /sys/geom/mirror/g_mirror.c | |
parent | a6bef5c27525e173e5d591178c51b8ff26095d44 (diff) | |
download | src-c1ab409cba45d8e79ca9d94c8f65c113d548a1df.tar.gz src-c1ab409cba45d8e79ca9d94c8f65c113d548a1df.zip |
Remove an unneeded g_mirror_destroy_provider() call.
The worker thread will destroy the mirror provider as part of its teardown
sequence. The call made sense in the initial revision of gmirror, but
became unnecessary in r137248.
Tested by: pho (part of a larger diff)
MFC afteR: 2 weeks
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=316174
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index f68a8926916c..621b334c48fa 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -2475,11 +2475,8 @@ g_mirror_update_device(struct g_mirror_softc *sc, bool force) if (g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_ACTIVE) == 0 && g_mirror_ndisks(sc, G_MIRROR_DISK_STATE_NEW) == 0) { /* - * No active disks or no disks at all, - * so destroy device. + * No usable disks, so destroy the device. */ - if (sc->sc_provider != NULL) - g_mirror_destroy_provider(sc); sc->sc_flags |= G_MIRROR_DEVICE_FLAG_DESTROY; break; } else if (g_mirror_ndisks(sc, |