mirror of
https://github.com/opnsense/src.git
synced 2026-03-24 19:53:08 -04:00
Make sure to kill the devstat entry for disappearing disks.
PR: 68074 Submitted by: Hendrik Scholz <hscholz@raisdorf.net>
This commit is contained in:
parent
e9f58c27b9
commit
52c583feb9
1 changed files with 3 additions and 1 deletions
|
|
@ -404,7 +404,9 @@ disk_destroy(struct disk *dp)
|
|||
|
||||
g_cancel_event(dp);
|
||||
dp->d_destroyed = 1;
|
||||
g_post_event(g_disk_destroy, dp, M_WAITOK, NULL);
|
||||
if (dp->d_devstat != NULL)
|
||||
devstat_remove_entry(dp->d_devstat);
|
||||
g_post_event(g_disk_destroy, dp, M_WAITOK, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue