Re: [PATCH 01/16] x86, fpu: wrap get_xsave_addr() to make it safer

From: Thomas Gleixner
Date: Wed Apr 22 2015 - 11:26:37 EST


On Wed, 22 Apr 2015, Borislav Petkov wrote:

> On Wed, Apr 22, 2015 at 05:17:08PM +0200, Thomas Gleixner wrote:
> > Is there a reason to have the task argument at all if thats only
> > intended for current?
>
> Right, so I think we either use @tsk everywhere or disable preemption in
> the whole function if using current. But I think we want to use @tsk...

Why should we disable preemption?

Thanks,

tglx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/