File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -6113,21 +6113,16 @@ rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)
6113
6113
/* Must have disabled the cpu buffer then done a synchronize_rcu */
6114
6114
static void reset_disabled_cpu_buffer (struct ring_buffer_per_cpu * cpu_buffer )
6115
6115
{
6116
- unsigned long flags ;
6117
-
6118
- raw_spin_lock_irqsave (& cpu_buffer -> reader_lock , flags );
6116
+ guard (raw_spinlock_irqsave )(& cpu_buffer -> reader_lock );
6119
6117
6120
6118
if (RB_WARN_ON (cpu_buffer , local_read (& cpu_buffer -> committing )))
6121
- goto out ;
6119
+ return ;
6122
6120
6123
6121
arch_spin_lock (& cpu_buffer -> lock );
6124
6122
6125
6123
rb_reset_cpu (cpu_buffer );
6126
6124
6127
6125
arch_spin_unlock (& cpu_buffer -> lock );
6128
-
6129
- out :
6130
- raw_spin_unlock_irqrestore (& cpu_buffer -> reader_lock , flags );
6131
6126
}
6132
6127
6133
6128
/**
You can’t perform that action at this time.
0 commit comments