Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp167849imj; Thu, 14 Feb 2019 17:50:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IaMZLk3ulAXWqil0MI1OlXNzJCD9lwIm/Bs0bldYg/m7zIJ/NEic8MOZOaxbvo9jlQsloUQ X-Received: by 2002:a62:4b56:: with SMTP id y83mr7168185pfa.235.1550195403562; Thu, 14 Feb 2019 17:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550195403; cv=none; d=google.com; s=arc-20160816; b=DjqE3cXQW0pnO2/QHBJNDHd0bxzksooD3w1byWmTNf1musxqe4lQ9Lc+e76LJzKMCi 6wwP/jCoYPezNLIRvNb0HiAuF1iBwW9GqlIeoj9y4VXwvztef1cxJEdeRiCo7Sic9Mul vbYi8/0t7rlrsnYmT1onjhSoEvxcWHeCSXYYQyGJeXhaPlAPT6xDQPCddfxPNf+fDc5g BBinXi8F9x+9ByF/QpWT0ghGHrSfHaGqqDg+1BXamEnHWZNo52ZiqcOfg/R2ZRnCzDBx YmIqVEv4u2m9E1Yl9RYUlrxfmlbHjRiWNVzqwv7dMcPGUHOSrfc0y7UmraLMzEKVIQdD Cvmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZPffygpbzAIrA6qiombVt6omSPrZ204apL0F6W9Y0lA=; b=MN5GNN7j/EwCoF5sDTnSR/UhFHdKFjFIRNAuBEuUND6S9uIW3u3uabhWYK11FLAZxe u3UcdutTRsSc+XKiwVrjrLzGMzMJZSpUIeLwrU6awp4CYtea89iELfZBDyHkgX5lcure x/SN+oNPpe5j5tWFC7PyAEmTR11vy8ygafHoqUnnewQLX0+XgSCVjhR8E2mvtNtlozI0 I0upbXAoAUIxfPBrKCqhQFrQ8WnnMXWIwGabj4YQePoF2okSOzd4x0DuBKwKJZpFBipb /cEerxfiQtFr86HMP3wLfUQRvj0VOOMS9ZY3iKWa57bB7ICYOGdaRiMtSMLHS/kdLtxZ bJqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o4nLKrWH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si4308868ple.281.2019.02.14.17.49.47; Thu, 14 Feb 2019 17:50:03 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o4nLKrWH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393893AbfBNSfg (ORCPT + 99 others); Thu, 14 Feb 2019 13:35:36 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39365 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbfBNSff (ORCPT ); Thu, 14 Feb 2019 13:35:35 -0500 Received: by mail-ot1-f67.google.com with SMTP id n8so12217304otl.6; Thu, 14 Feb 2019 10:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZPffygpbzAIrA6qiombVt6omSPrZ204apL0F6W9Y0lA=; b=o4nLKrWH5/JS6AoRWA4Rs11/G9oEUtrUbRFNebPR7HNQbIprHqRX//Tcaux2+K9eb3 IWTq0qvnSYWtV43Tr/V6ndVgyIIgPyTe9k+oOazpGfn8FdeT9eNKu7HU0T7fPI17qUbb Ahd+zvfDIjLDytVndSCl59bgv6lWb6Di3qbVF5GtxOI9v3D80l+KzdgQ1h+Gnwgh31Ad J4tOQbu08eX/v10zzjvhTi9OezCkgArPljJ9GgA8CENJ4Ae4TTcxR1Ndijs6oRaKhZfe tLQergfSFjB/RIisQMvgHUzf+SDezY+vBPshPcodS1O40SKgDJ0Zj3FQLcUsK6hVe+FQ ZSmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZPffygpbzAIrA6qiombVt6omSPrZ204apL0F6W9Y0lA=; b=lhJObWMcPWsrjHXqJT45rdg0rQPKaeSRR1L7zdgCywA/za+QEPFrFz8gkP4tCpsakc B/A8ZD6OxH7PQ8Yztd8XJigLTGY7CEecKLJii7Dss6F2ZArPXTXFHVuTNq1FNAT/JTO1 TIPmZsa4y6PL3tfxjh17raXdY0rSa96LHMmMvyqDTcCxqBkUyuqu+OMNPAMlU57epk1p jLMvYi2IVi3UHb941Ohn80kaOHJAq+1byogaXsjoV1/MIkyQq1T7PofLj/v665YJR2vl x8gdoPvQk+7qslBd8wDzV3+96Vzuz6vaMzs8iZInIah/jLGb208XgXzynKRNwl6IhMB/ uptg== X-Gm-Message-State: AHQUAuaXVFtPetP3EbWNs87w6GFFX+AFgq14fBGSEFCLqhewTeLRgOwJ 4hpvuJDyGh32vRt8wduRkwb3kn5KP8lQI4YhjNz55g== X-Received: by 2002:a9d:6b94:: with SMTP id b20mr3152589otq.42.1550169334527; Thu, 14 Feb 2019 10:35:34 -0800 (PST) MIME-Version: 1.0 References: <1549736341.2971.7.camel@HansenPartnership.com> <1549813472.4142.3.camel@HansenPartnership.com> <3380ed8e-ae02-96f2-142b-7cce09459df8@kernel.dk> In-Reply-To: <3380ed8e-ae02-96f2-142b-7cce09459df8@kernel.dk> From: Mikael Pettersson Date: Thu, 14 Feb 2019 19:35:22 +0100 Message-ID: Subject: Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500 To: Jens Axboe Cc: James Bottomley , Linux SPARC Kernel Mailing List , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 10, 2019 at 5:05 PM Jens Axboe wrote: > > On 2/10/19 8:44 AM, James Bottomley wrote: > > On Sun, 2019-02-10 at 10:17 +0100, Mikael Pettersson wrote: > >> On Sat, Feb 9, 2019 at 7:19 PM James Bottomley > >> wrote: > > [...] > >>> I think the reason for this is that the block mq path doesn't feed > >>> the kernel entropy pool correctly, hence the need to install an > >>> entropy gatherer for systems that don't have other good random > >>> number sources. > >> > >> That does sound plausible, I admit I didn't even consider the > >> possibility that the old block I/O path also was an entropy source. > > > > In theory, the new one should be as well since the rotational entropy > > collector is on the SCSI completion path. I'd seen the same problem > > but had assumed it was something someone had done to our internal > > entropy pool and thus hadn't bisected it. > > The difference is that the old stack included ADD_RANDOM by default, > so this check: > > if (blk_queue_add_random(q)) > add_disk_randomness(req->rq_disk); > > in scsi_end_request() would be true, and we'd add the randomness. For > sd, it seems to set it just fine for non-rotational drives. Could this > be because other devices don't? Maybe the below makes a difference. > > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 6d65ac584eba..60e029911755 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -1881,6 +1881,7 @@ struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev) > sdev->request_queue->queuedata = sdev; > __scsi_init_queue(sdev->host, sdev->request_queue); > blk_queue_flag_set(QUEUE_FLAG_SCSI_PASSTHROUGH, sdev->request_queue); > + blk_queue_flag_set(QUEUE_FLAG_ADD_RANDOM, sdev->request_queue); > return sdev->request_queue; > } This patch eliminates my 5 minute boot-up delay problem. /Mikael