Module Name: src
Committed By: riastradh
Date: Tue Jun 1 21:15:37 UTC 2021
Modified Files:
src/sys/dev/audio: audio.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/audio/audio.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/audio/audio.c
diff -u src/sys/dev/audio/audio.c:1.99 src/sys/dev/audio/audio.c:1.100
--- src/sys/dev/audio/audio.c:1.99 Tue Jun 1 21:14:52 2021
+++ src/sys/dev/audio/audio.c Tue Jun 1 21:15:37 2021
@@ -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).