Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1628961yba; Sat, 27 Apr 2019 03:44:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEMJ2wYIEOhhS6VMdYY1QM005W4mJ1yao8NMKm5TI7VXQi5qUrwh7EFs5Ce2M+IFPCBR9Q X-Received: by 2002:a62:3583:: with SMTP id c125mr28849701pfa.169.1556361880771; Sat, 27 Apr 2019 03:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556361880; cv=none; d=google.com; s=arc-20160816; b=YuMPIR+cXjAWIt+dega93dVt8Vb6lhyKivkouvZdrNrzM4p6l7vqmUEeIQdE5cvy1m 6CR4uVDsypOMMB7NwPNy0EHrRj6g7ypipEwjkF9t1/EibdizCdHn8e6qFFUAScb4ShPP G6OYhs8pUc5NEvg3t7tDVoezdBd/2ygN8Gr2V/5u8qA4N+YvKxDwajGhdiu8nObG2+LL 5ki+1XcgsnWSfYVb7MNx8AAuwVMbIWMyR3tDOIxVj6+aBy70Otl3PRNe/oF2bNCbXiER 0yT5WsrqTMHAG3rcFq6wVHXPNG0BIxuA2mCYwc7Q+ReHRY7wa6qN1r+EYzkczbAcC7tH xjRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=u0hMkP78WzVESeVurc7W+axIkmF3x4jmpAl3fIzp+8s=; b=yM0r+jmRYyv0J7DCZFSR1riQ2K6wogj0cPhPsu6R9M7YWQt1HJo9Z91yurchItn/Vb mZqdqavkRa1dVD9W6NGlGMmQ+xMgYEgXbXZ6niGHnluNrgtnKVMH7UZiFO1incN7hlFx oGjOGa/RKVRqxzzrTcTrTJ1ocxQW7pWFH2hfCWbXtQIQRFo6rfML/AsxNRLlRws9+g+w JsMEylGe7kEVkXqx5JMhVjuzo03QyogoRZIXx5DeXSx8WMlR1sijAB7f0M3nE0NOR/m4 5ErcVVkiIpvAuucmxiDPHrUIeOhkFkqojWNiEBhPeUfcWkOSLnSJD3MXwhx753sebJVC pAdw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b128si30135331pfb.141.2019.04.27.03.44.23; Sat, 27 Apr 2019 03:44:40 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbfD0Kmw (ORCPT + 99 others); Sat, 27 Apr 2019 06:42:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfD0Kmw (ORCPT ); Sat, 27 Apr 2019 06:42:52 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2CF29368B1; Sat, 27 Apr 2019 10:42:52 +0000 (UTC) Received: from prarit.bos.redhat.com (prarit-guest.khw1.lab.eng.bos.redhat.com [10.16.200.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D44D60C82; Sat, 27 Apr 2019 10:42:51 +0000 (UTC) Subject: Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading" To: Heiko Carstens Cc: Jessica Yu , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Cathy Avery References: <20190426130736.GB8646@osiris> <20190426150741.GD8646@osiris> <20190426160956.GA3827@linux-8ccs> <2e047a7e-bf08-be8c-bdd0-429464fa133d@redhat.com> <52c293e9-ddfa-426a-a8f1-2106e250e78d@redhat.com> <20190427102440.GA28889@osiris> From: Prarit Bhargava Message-ID: <6a69074a-e913-3b67-feef-9b62a7400f8a@redhat.com> Date: Sat, 27 Apr 2019 06:42:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190427102440.GA28889@osiris> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sat, 27 Apr 2019 10:42:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/27/19 6:24 AM, Heiko Carstens wrote: > > 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 @@ again: > finished_loading(mod->name)); > if (err) > goto out_unlocked; > + cond_resched(); > goto again; > } > err = -EEXIST; > Heiko, I'm testing on 2-cpu systems which appear to show the problem ~10% of the time. On another system I backed out my original patch to set a baseline, and noticed that occasionally the time to boot the system doubles from ~4 seconds to 9 seconds. Is this something you're also concerned with? P.