mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Remove TDP_GEOM flag from thread after ggate device creation.
This flag means "wait for all pending requests before returning to userland". There are pending events for sure, because we just created new provider and other classes want to taste it, but we cannot answer on I/O requests until we're here.
This commit is contained in:
parent
848a25c773
commit
f906581296
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141972
@ -463,6 +463,13 @@ g_gate_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct threa
|
||||
|
||||
G_GATE_CHECK_VERSION(ggio);
|
||||
error = g_gate_create(ggio);
|
||||
/*
|
||||
* Reset TDP_GEOM flag.
|
||||
* There are pending events for sure, because we just created
|
||||
* new provider and other classes want to taste it, but we
|
||||
* cannot answer on I/O requests until we're here.
|
||||
*/
|
||||
td->td_pflags &= ~TDP_GEOM;
|
||||
return (error);
|
||||
}
|
||||
case G_GATE_CMD_DESTROY:
|
||||
|
Loading…
Reference in New Issue
Block a user