The topology lock is not needed for g_error_provider() function.
Discussed with: phk
This commit is contained in:
parent
5295209eff
commit
030f6f3558
@ -115,10 +115,10 @@ create_example_provider(struct g_geom *gp)
|
||||
|
||||
g_topology_lock();
|
||||
pp = g_new_providerf(gp, "example_provider");
|
||||
g_topology_unlock();
|
||||
pp->mediasize = 65536;
|
||||
pp->sectorsize = 512;
|
||||
g_error_provider(pp, 0);
|
||||
g_topology_unlock();
|
||||
|
||||
return (pp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user