Commit d30deeb
committed
eventpoll: move f_lock acquisition into ep_remove_file()
Let the helper own its critical section end-to-end: take &file->f_lock
at the top, read file->f_ep inside the lock, release on exit. Callers
(ep_remove() and eventpoll_release_file()) no longer need to wrap the
call, and the function-comment lock-handoff contract is gone.
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Christian Brauner (Amutable) <[email protected]>1 parent a6dc643 commit d30deeb
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
859 | | - | |
| 858 | + | |
860 | 859 | | |
861 | 860 | | |
862 | 861 | | |
863 | 862 | | |
864 | 863 | | |
865 | | - | |
| 864 | + | |
866 | 865 | | |
867 | 866 | | |
868 | | - | |
869 | 867 | | |
| 868 | + | |
| 869 | + | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
935 | 934 | | |
936 | 935 | | |
937 | 936 | | |
| |||
1150 | 1149 | | |
1151 | 1150 | | |
1152 | 1151 | | |
1153 | | - | |
1154 | 1152 | | |
1155 | 1153 | | |
1156 | 1154 | | |
| |||
0 commit comments