aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJiri Kosina <[email protected]>2021-01-22 12:13:20 +0100
committerDenis Efremov <[email protected]>2021-02-04 13:00:24 +0300
commit8a0c014cd20516ade9654fc13b51345ec58e7be8 (patch)
tree0e9eec639dc01bd649b39f2258bb17a6346cec43 /tools/perf/scripts/python/exported-sql-viewer.py
parent0d7389718c32ad6bb8bee7895c91e2418b6b26aa (diff)
floppy: reintroduce O_NDELAY fix
This issue was originally fixed in 09954bad4 ("floppy: refactor open() flags handling"). The fix as a side-effect, however, introduce issue for open(O_ACCMODE) that is being used for ioctl-only open. I wrote a fix for that, but instead of it being merged, full revert of 09954bad4 was performed, re-introducing the O_NDELAY / O_NONBLOCK issue, and it strikes again. This is a forward-port of the original fix to current codebase; the original submission had the changelog below: ==== Commit 09954bad4 ("floppy: refactor open() flags handling"), as a side-effect, causes open(/dev/fdX, O_ACCMODE) to fail. It turns out that this is being used setfdprm userspace for ioctl-only open(). Reintroduce back the original behavior wrt !(FMODE_READ|FMODE_WRITE) modes, while still keeping the original O_NDELAY bug fixed. Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Reported-by: Wim Osterholt <[email protected]> Tested-by: Wim Osterholt <[email protected]> Reported-and-tested-by: Kurt Garloff <[email protected]> Fixes: 09954bad4 ("floppy: refactor open() flags handling") Fixes: f2791e7ead ("Revert "floppy: refactor open() flags handling"") Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Denis Efremov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions