Remember to hold topology lock when we change things.

Spotted by:	kuriyama
This commit is contained in:
phk 2002-12-17 09:44:10 +00:00
parent ef296549a5
commit 8a25281415

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");
break;
}
g_topology_lock();
g_mbr_modify(gp, ms, dp);
g_topology_unlock();
break;
}
g_topology_lock();