git: kernel - Use atomic ops for devstat's ds->busy_count field.

看板DFBSD_commit作者時間15年前 (2011/01/20 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 8bd60bc26686ba32daa68a8196296ecbc2d048a3 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Jan 19 11:12:47 2011 -0800 kernel - Use atomic ops for devstat's ds->busy_count field. * Use atomic ops to manage the busy_count field as these functions can be called MP. * This should avoid negative busy_count transitions due to MP races on the field. Reported-by: Peter Avalos <peter@theshell.com> Summary of changes: sys/kern/subr_devstat.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bd60bc26686ba32daa68a8196296ecbc2d048a3 -- DragonFly BSD source repository
文章代碼(AID): #1DDpmtCw (DFBSD_commit)