Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/audio audio(4): No need to set file->dying when clos...



details:   https://anonhg.NetBSD.org/src/rev/9cdfd14fdb35
branches:  trunk
changeset: 1021498:9cdfd14fdb35
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jun 01 21:15:37 2021 +0000

description:
audio(4): No need to set file->dying when closing the file.

No other file operations are possible by the time we get to
audioclose.

diffstat:

 sys/dev/audio/audio.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r ac58b3ac27fd -r 9cdfd14fdb35 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Tue Jun 01 21:14:52 2021 +0000
+++ b/sys/dev/audio/audio.c     Tue Jun 01 21:15:37 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.99 2021/06/01 21:14:52 riastradh Exp $     */
+/*     $NetBSD: audio.c,v 1.100 2021/06/01 21:15:37 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.99 2021/06/01 21:14:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.100 2021/06/01 21:15:37 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -2546,9 +2546,6 @@
 {
        int error;
 
-       /* Protect entering new fileops to this file */
-       atomic_store_relaxed(&file->dying, true);
-
        /*
         * Drain first.
         * It must be done before unlinking(acquiring exlock).



Home | Main Index | Thread Index | Old Index