Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4669012yba; Tue, 30 Apr 2019 02:19:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqysFRSMyHExMITUEcc947Jp4Wj+TtCnoTxr2YThj//NZ6wL02LdRHeILc4R2QSUsuMRIKrx X-Received: by 2002:a62:fb16:: with SMTP id x22mr30136499pfm.140.1556615983528; Tue, 30 Apr 2019 02:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556615983; cv=none; d=google.com; s=arc-20160816; b=Uoj3csyrsoTEi9EUrz7ogl8o/4szqX+0kWv6vJNvgfIEIjBaGR4mlIfKljyWFFMYK9 Mw0d2YiFyNVi8/IxEK0637sgw1RCvWd5VYhw//w4wrNxFJ9+/P72lYDX8e4uZk0M+Rmv DIMbnjr7gZB7sbqjEBzHAPMsaE8Ts6nCr2/wwWJqC8eqFpTpgJQiJJGtk1WNjA6zlX8F W8JX90i6XIgqEFMDizfnURGL9Vmw8rDpAJf5GzIlyF9zy9gPXDq1LQEHDtibiEgFFsdN bbABXLtfwEDKNGEHp0bNEZD1gd3mHP0XslpvfCO+TC1Xc5EP2WVcoT7JRLnro1cvzwZ+ 32WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=dn2fdMRiWR5mwgjHHZNyJv07ayk/cTWcDTobqEGLJ8M=; b=mY5VpWpEbJvWVktaPud5tbqSLM4q9LDf/TmcxUoc1+hiLuI7joRMiaKjH6ub0DG/e5 KV2DoALoKV4xX28Zp0P9bfGE1Ii92oEErOD78w8rBK8I30/rB4kKZBdJfqrnqdi7FtZz v7rgvA7OD8+opHwafkAfOV7Q2+tCnep+XcUey9YszYiqOb2T09iyMq1ddzUwnmBOYNPF vtyskN4gwh+kTjObGqAiRbcFD/suta0dSseYXs9juQ0ohhKpjvDNqZdLuonkbrUjZFLP 3GDKzqiadY/pG78btO8Op5UkLPzLVuO1VlJMB30yps5u03WR0nJyCURYLwuCD2fOKbpV IlXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 127si39043637pfz.28.2019.04.30.02.19.27; Tue, 30 Apr 2019 02:19:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbfD3JQx (ORCPT + 99 others); Tue, 30 Apr 2019 05:16:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52516 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfD3JQx (ORCPT ); Tue, 30 Apr 2019 05:16:53 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3U98FGP046501 for ; Tue, 30 Apr 2019 05:16:52 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2s6hj3dejm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 Apr 2019 05:16:52 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Apr 2019 10:16:47 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 30 Apr 2019 10:16:46 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3U9GjwS52429002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Apr 2019 09:16:45 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 815BDA4055; Tue, 30 Apr 2019 09:16:45 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 56B8EA4051; Tue, 30 Apr 2019 09:16:45 +0000 (GMT) Received: from osiris (unknown [9.152.212.21]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 30 Apr 2019 09:16:45 +0000 (GMT) Date: Tue, 30 Apr 2019 11:16:44 +0200 From: Heiko Carstens To: Jessica Yu Cc: Prarit Bhargava , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/module: Reschedule while waiting for modules to finish loading References: <20190429151751.15424-1-prarit@redhat.com> <20190430075108.GA21092@linux-8ccs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430075108.GA21092@linux-8ccs> X-TM-AS-GCONF: 00 x-cbid: 19043009-0012-0000-0000-00000316C720 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19043009-0013-0000-0000-0000214F2F36 Message-Id: <20190430091643.GB5487@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-30_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904300061 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 09:51:08AM +0200, Jessica Yu wrote: > +++ Prarit Bhargava [29/04/19 11:17 -0400]: > >Heiko, do you want a Signed-off-by or a Reported-by? Either one works > >for me. > > > >P. > > I think you forgot to CC Heiko :) Indeed ;) I'm fine with the Reported-by tag. Thank you! > >----8<---- > > > >On a s390 z14 LAR with 2 cpus about stalls about 3% of the time while > >loading the s390_trng.ko module. > > > >Add a reschedule point to the loop that waits for modules to complete > >loading. > > > >Reported-by: Heiko Carstens > >Fixes: linux-next commit f9a75c1d717f ("modules: Only return -EEXIST for modules that have finished loading") > >Signed-off-by: Prarit Bhargava > >Cc: Jessica Yu > >--- > >kernel/module.c | 1 + > >1 file changed, 1 insertion(+) > > > >diff --git a/kernel/module.c b/kernel/module.c > >index 410eeb7e4f1d..48748cfec991 100644 > >--- a/kernel/module.c > >+++ b/kernel/module.c > >@@ -3585,6 +3585,7 @@ static int add_unformed_module(struct module *mod) > > finished_loading(mod->name)); > > if (err) > > goto out_unlocked; > >+ cond_resched(); > > goto again; > > } > > err = -EEXIST; > >-- > >2.18.1 > >