Re: mips: question about switch_to()->__sanitize_fcr31()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping.

On 11/21, Oleg Nesterov wrote:
>
> Hello,
>
> I know absolutely nothing about arch/mips, I can't even find the
> definition of "current" or the caller of switch_to().
>
> So, __sanitize_fcr31() is called by switch_to() and it does
> force_fcr31_sig(fcr31, pc, next).
>
> Was "current" already updated at this stage so that next == current?
>
>
> Why I am asking. I want to add
>
> 	// otherwise the usage of ->siglock is not safe
> 	WARN_ON(!(t == current || task_is_traced(t)));
>
> into force_sig_info_to_task() and simplify it a bit, but I don't
> know if "t == current" is already true at the start of switch_to().
>
>
> Thanks,
>
> Oleg.





[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux