diff options
| author | Takashi Iwai <tiwai@suse.de> | 2018-01-08 14:03:53 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-17 09:35:26 +0100 |
| commit | fa6c1876ecf724f4bb77842770941db41d35c3f9 (patch) | |
| tree | 84fb0e0c53c2f371693ce2070be8037663e871ad /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 9bb4bb18ccffc4dc4a1f1038a5dc0fb3a4020c05 (diff) | |
ALSA: pcm: Allow aborting mutex lock at OSS read/write loops
commit 900498a34a3ac9c611e9b425094c8106bdd7dc1c upstream.
PCM OSS read/write loops keep taking the mutex lock for the whole
read/write, and this might take very long when the exceptionally high
amount of data is given. Also, since it invokes with mutex_lock(),
the concurrent read/write becomes unbreakable.
This patch tries to address these issues by replacing mutex_lock()
with mutex_lock_interruptible(), and also splits / re-takes the lock
at each read/write period chunk, so that it can switch the context
more finely if requested.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
