DragonFly-2.3.2.323.gd0fe85 master sys/kern subr_diskslice.c vfs

看板DFBSD_commit作者時間16年前 (2009/08/08 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d0fe8596b748b6801c6c0c469b1b5f7613a7f39d Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Aug 7 10:39:24 2009 -0700 DEVFS - Fix asynchronous race on reprobe, remove devfs_msg id, cleanup * The synchronous DISK_DISK_REPROBE and DISK_SLICE_REPROBE messages return while make_dev devices are still queued to devfs. Add a call to devfs_config() to wait for the creation of those devices to finish before returning. This fixes numerous problems with shell scripts which fdisk + disklabel + newfs in a batch. * Remove devfs_msg->id, also fixing an issue where the id was retrieves after the message is freed. Async entry points now return void instead of the id. * Adjust devfs_msg_send() to execute the message directly if the calling thread is the devfs message thread. This is not strictly needed right now but may be used in the future. * General cleanup. Summary of changes: sys/kern/subr_diskslice.c | 6 + sys/kern/vfs_conf.c | 2 +- sys/vfs/devfs/devfs.h | 19 +-- sys/vfs/devfs/devfs_core.c | 379 +++++++++++++++++++++---------------------- 4 files changed, 201 insertions(+), 205 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0fe8596b748b6801c6c0c469b1b5f7613a7f39d -- DragonFly BSD source repository
文章代碼(AID): #1AV6ln29 (DFBSD_commit)