mirror of https://github.com/schoebel/mars
fix interrupt awareness in brick_say
This commit is contained in:
parent
3d45b19e71
commit
59fa9bfdd9
|
@ -94,7 +94,7 @@ static
|
|||
void _say_mark(unsigned long cpu)
|
||||
{
|
||||
char *ptr;
|
||||
bool use_atomic = (preempt_count() & (SOFTIRQ_MASK | HARDIRQ_MASK | NMI_MASK)) != 0;
|
||||
bool use_atomic = (preempt_count() & (SOFTIRQ_MASK | HARDIRQ_MASK | NMI_MASK)) != 0 || irqs_disabled();
|
||||
|
||||
say_alloc(cpu, use_atomic);
|
||||
if (unlikely(use_atomic || cpu >= NR_CPUS))
|
||||
|
|
|
@ -1463,7 +1463,7 @@ bool phase0_startio(struct trans_logger_mref_aspect *mref_a)
|
|||
}
|
||||
#endif
|
||||
if (!mref_a->is_hashed) {
|
||||
MARS_DBG("hashing %d at %lld\n", mref->ref_len, mref->ref_pos);
|
||||
MARS_IO("hashing %d at %lld\n", mref->ref_len, mref->ref_pos);
|
||||
hash_insert(brick, mref_a);
|
||||
}
|
||||
return phase1_startio(mref_a);
|
||||
|
|
Loading…
Reference in New Issue