Module Name: src Committed By: tkusumi Date: Mon Dec 2 15:17:43 UTC 2019
Modified Files: src/sys/dev/dm: device-mapper.c Log Message: dm: Add a comment on race window on unload There is a minor race window on unload vs device creation that can cause panic. https://github.com/DragonFlyBSD/DragonFlyBSD/commit/53a07f3ae7313aa58948a60f46428bfc2254dc3c taken-from: DragonFlyBSD To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/dm/device-mapper.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dm/device-mapper.c diff -u src/sys/dev/dm/device-mapper.c:1.40 src/sys/dev/dm/device-mapper.c:1.41 --- src/sys/dev/dm/device-mapper.c:1.40 Sat Oct 6 14:59:11 2018 +++ src/sys/dev/dm/device-mapper.c Mon Dec 2 15:17:43 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: device-mapper.c,v 1.40 2018/10/06 14:59:11 mlelstv Exp $ */ +/* $NetBSD: device-mapper.c,v 1.41 2019/12/02 15:17:43 tkusumi Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -197,6 +197,7 @@ dm_modcmd(modcmd_t cmd, void *arg) */ if (dm_dev_counter > 0) return EBUSY; + /* race window here */ error = dmdestroy(); if (error)