From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753370AbcEJUPr (ORCPT ); Tue, 10 May 2016 16:15:47 -0400 Received: from hall.aurel32.net ([195.154.112.97]:56151 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753069AbcEJUKk (ORCPT ); Tue, 10 May 2016 16:10:40 -0400 X-Greylist: delayed 2268 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 May 2016 16:10:40 EDT Date: Tue, 10 May 2016 21:32:46 +0200 From: Aurelien Jarno To: Paul Burton Cc: linux-mips@linux-mips.org, Ralf Baechle , "stable # v4 . 0+" , Adam Buchbinder , linux-kernel@vger.kernel.org, James Hogan Subject: Re: [PATCH 1/2] MIPS: Disable preemption during prctl(PR_SET_FP_MODE, ...) Message-ID: <20160510193246.GB7635@aurel32.net> Mail-Followup-To: Paul Burton , linux-mips@linux-mips.org, Ralf Baechle , "stable # v4 . 0+" , Adam Buchbinder , linux-kernel@vger.kernel.org, James Hogan References: <1461239038-19991-1-git-send-email-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461239038-19991-1-git-send-email-paul.burton@imgtec.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-04-21 12:43, Paul Burton wrote: > Whilst a PR_SET_FP_MODE prctl is performed there are decisions made > based upon whether the task is executing on the current CPU. This may > change if we're preempted, so disable preemption to avoid such changes > for the lifetime of the mode switch. > > Signed-off-by: Paul Burton > Fixes: 9791554b45a2 ("MIPS,prctl: add PR_[GS]ET_FP_MODE prctl options for MIPS") > Cc: stable # v4.0+ > --- > > arch/mips/kernel/process.c | 4 ++++ > 1 file changed, 4 insertions(+) Both patches fixes building pillow, which otherwise hangs running "python setup.py build" [1]. The setup code uses the multiprocessing package, and it hangs in a call to PR_SET_FP_MODE. You can therefore add for both patches: Tested-by: Aurelien Jarno Thanks, Aurelien [1] https://buildd.debian.org/status/fetch.php?pkg=pillow&arch=mips&ver=3.2.0-1&stamp=1460852908 -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net