1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00

Remember to hold topology lock when we change things.

Spotted by:	kuriyama
This commit is contained in:
Poul-Henning Kamp 2002-12-17 09:44:10 +00:00
parent 2cc40a38a8
commit 50bd488da3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107968

View File

@ -274,7 +274,9 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist)
printf("Ignoring known bogus MBR #1\n"); printf("Ignoring known bogus MBR #1\n");
break; break;
} }
g_topology_lock();
g_mbr_modify(gp, ms, dp); g_mbr_modify(gp, ms, dp);
g_topology_unlock();
break; break;
} }
g_topology_lock(); g_topology_lock();