We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b9711 commit 31f23a6Copy full SHA for 31f23a6
kernel/bpf/syscall.c
@@ -2345,12 +2345,8 @@ void bpf_link_put(struct bpf_link *link)
2345
if (!atomic64_dec_and_test(&link->refcnt))
2346
return;
2347
2348
- if (in_atomic()) {
2349
- INIT_WORK(&link->work, bpf_link_put_deferred);
2350
- schedule_work(&link->work);
2351
- } else {
2352
- bpf_link_free(link);
2353
- }
+ INIT_WORK(&link->work, bpf_link_put_deferred);
+ schedule_work(&link->work);
2354
}
2355
2356
static int bpf_link_release(struct inode *inode, struct file *filp)
0 commit comments