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/fafccace875a
branches:  trunk
changeset: 379467:fafccace875a
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 9f8ba2456e30 -r fafccace875a 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 @@ audio_close(struct audio_softc *sc, audi
 {
        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