On 5/20/24 18:26, Martin KaFai Lau wrote:
On 5/9/24 5:29 PM, Kui-Feng Lee wrote:+static __poll_t bpf_struct_ops_map_link_poll(struct file *file, + struct poll_table_struct *pts) +{ + struct bpf_struct_ops_link *st_link = file->private_data; + + poll_wait(file, &st_link->wait_hup, pts); + + return (st_link->map) ? 0 : EPOLLHUP;nit. It should need a rcu_access_pointer(st_link->map).
sure