@@ -288,13 +288,13 @@ static void pstore_dump(struct kmsg_dumper *dumper,
288
288
why = kmsg_dump_reason_str (reason );
289
289
290
290
if (pstore_cannot_block_path (reason )) {
291
- if (!spin_trylock_irqsave (& psinfo -> buf_lock , flags )) {
291
+ if (!raw_spin_trylock_irqsave (& psinfo -> buf_lock , flags )) {
292
292
pr_err ("dump skipped in %s path because of concurrent dump\n" ,
293
293
in_nmi () ? "NMI" : why );
294
294
return ;
295
295
}
296
296
} else {
297
- spin_lock_irqsave (& psinfo -> buf_lock , flags );
297
+ raw_spin_lock_irqsave (& psinfo -> buf_lock , flags );
298
298
}
299
299
300
300
kmsg_dump_rewind (& iter );
@@ -364,7 +364,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
364
364
total += record .size ;
365
365
part ++ ;
366
366
}
367
- spin_unlock_irqrestore (& psinfo -> buf_lock , flags );
367
+ raw_spin_unlock_irqrestore (& psinfo -> buf_lock , flags );
368
368
369
369
if (saved_ret ) {
370
370
pr_err_once ("backend (%s) writing error (%d)\n" , psinfo -> name ,
@@ -503,7 +503,7 @@ int pstore_register(struct pstore_info *psi)
503
503
psi -> write_user = pstore_write_user_compat ;
504
504
psinfo = psi ;
505
505
mutex_init (& psinfo -> read_mutex );
506
- spin_lock_init (& psinfo -> buf_lock );
506
+ raw_spin_lock_init (& psinfo -> buf_lock );
507
507
508
508
if (psi -> flags & PSTORE_FLAGS_DMESG )
509
509
allocate_buf_for_compression ();
0 commit comments