diff options
author | Eric W. Biederman <[email protected]> | 2020-11-20 17:14:21 -0600 |
---|---|---|
committer | Eric W. Biederman <[email protected]> | 2020-12-10 12:39:40 -0600 |
commit | f43c283a89a7dc531a47d4b1e001503cf3dc3234 (patch) | |
tree | 4cd07b236726827c958bfe2e67bf9f2dd2194fd3 /drivers/platform/surface/aggregator/ssh_parser.c | |
parent | 950db38ff2c01b7aabbd7ab4a50b7992750fa63d (diff) |
kcmp: In kcmp_epoll_target use fget_task
Use the helper fget_task and simplify the code.
As well as simplifying the code this removes one unnecessary increment of
struct files_struct. This unnecessary increment of files_struct.count can
result in exec unnecessarily unsharing files_struct and breaking posix
locks, and it can result in fget_light having to fallback to fget reducing
performance.
Suggested-by: Oleg Nesterov <[email protected]>
Reviewed-by: Cyrill Gorcunov <[email protected]>
v1: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Eric W. Biederman <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions