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 d47cc4d commit 4223bf8Copy full SHA for 4223bf8
kernel/bpf/helpers.c
@@ -774,11 +774,9 @@ int bpf_try_get_buffers(struct bpf_bprintf_buffers **bufs)
774
{
775
int nest_level;
776
777
- preempt_disable();
778
nest_level = this_cpu_inc_return(bpf_bprintf_nest_level);
779
if (WARN_ON_ONCE(nest_level > MAX_BPRINTF_NEST_LEVEL)) {
780
this_cpu_dec(bpf_bprintf_nest_level);
781
- preempt_enable();
782
return -EBUSY;
783
}
784
*bufs = this_cpu_ptr(&bpf_bprintf_bufs[nest_level - 1]);
@@ -791,7 +789,6 @@ void bpf_put_buffers(void)
791
789
if (WARN_ON_ONCE(this_cpu_read(bpf_bprintf_nest_level) == 0))
792
790
return;
793
794
795
796
797
void bpf_bprintf_cleanup(struct bpf_bprintf_data *data)
0 commit comments