Commit 8eaec7b
perf/core: Remove retry loop from perf_mmap()
AFAICT there is no actual benefit from the mutex drop on re-try. The
'worst' case scenario is that we instantly re-gain the mutex without
perf_mmap_close() getting it. So might as well make that the normal
case.
Reflow the code to make the ring buffer detach case naturally flow
into the no ring buffer case.
[ mingo: Forward ported it ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20241104135519.463607258@infradead.org1 parent 0c8a4e4 commit 8eaec7b
1 file changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6719 | 6719 | | |
6720 | 6720 | | |
6721 | 6721 | | |
6722 | | - | |
6723 | 6722 | | |
| 6723 | + | |
6724 | 6724 | | |
6725 | 6725 | | |
6726 | 6726 | | |
6727 | 6727 | | |
6728 | 6728 | | |
6729 | 6729 | | |
6730 | | - | |
| 6730 | + | |
6731 | 6731 | | |
6732 | | - | |
6733 | | - | |
| 6732 | + | |
| 6733 | + | |
6734 | 6734 | | |
6735 | | - | |
6736 | | - | |
6737 | | - | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
6738 | 6739 | | |
6739 | 6740 | | |
6740 | | - | |
6741 | | - | |
6742 | | - | |
| 6741 | + | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
| 6745 | + | |
| 6746 | + | |
6743 | 6747 | | |
| 6748 | + | |
6744 | 6749 | | |
6745 | 6750 | | |
6746 | 6751 | | |
| |||
0 commit comments