summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-06-19 17:00:34 +0200
committerTakashi Iwai <tiwai@suse.de>2026-06-29 12:28:20 +0200
commitf199040982eac619bf9b3231af284dbf2e74f179 (patch)
tree8cdc94aa65e39a01823d38ddc959f8b729c9f46b /tools/perf/scripts/python
parent3213bf9885e3356fff12ac18b12d4c2fb4687734 (diff)
ALSA: pcm: Notify disconnected state at mmap data fault, too
When a device gets disconnected, the driver waits until the all opened file descriptors are closed before releasing the device. Although PCM core emits an error to any further syscalls (except for close), some applications don't notice the disconnected state because they mainly access only via mmap, and it may block the device release unnecessarily too long. This patch is an attempt to improve the behavior by adding the notification of the PCM disconnected state at mmap data faulting. When the device is disconnected, it now returns VM_FAULT_SIGBUS, so that the application can notice the invalid PCM state. Reported-and-tested-by: Ai Chao <aichao@kylinos.cn> Link: https://lore.kernel.org/20260615132657.2097213-1-aichao@kylinos.cn> Link: https://patch.msgid.link/20260619150035.1560937-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions