Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1109153imm; Thu, 6 Sep 2018 15:46:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ30VfNNAoHh+/4zQ5z3d8hBs19wXasNP0NPTdFSMuokRkglg7sQr2SaGBG9yh3izsSZI8n X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr5040271plk.229.1536273971586; Thu, 06 Sep 2018 15:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536273971; cv=none; d=google.com; s=arc-20160816; b=PVU4Mo5b1TnmHSxK52WhgimRpNkr8IOB2avWYYfuBSPbeNchdSGqohOuw0t/O0sMPi miqQw6MosWRSQmYhQsz1qvuqAPZh4g7Gb7m7zKddWNR7Kvq2bHxdZIXEaeJfmsTOC9pE KrjWoNLBIZK5HqqC8ADb6lgSedAhDcDuVWlgZYyG76JBEk4p0bgHfl+8Viqu1VffM5QX BDQF/uqcWof3IZnoNs59AwQanHtongic60c9lRxiPAwmouRmHX31N7eVGWZP1DvHYcxd JFAwTLNhVqJ2OqZcv9E9uOY26tcCk1WcHTAzSIGE9EkjSpT+qWTjcwkiwV3lFMRQssKN yOHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=slsTku73Cxw/ihQxR6Z0iOhKkYfMux615hAUa0qRy7U=; b=YKbLJp8aCnneUk3YbMK0/gbn/drIRHmZvGEYhD26cAZTmn0/QX/bN439iSyEfuQJ6P zvAmcCyGoqaBR4JIzXkjxvqDPdIf7/yYvQ3Ymee2mj9PZgOJbom2VsB7J/d8iZH3syiA PF6c3B8PJ5OvJVAcZYaPzGwZkTCdRnm6DDAYPJ6MzDs7WVkd8IPyvW+0nUwlwG85m+Om 98EdkCVlrwJJMS7FQdaqhaujv3AKEEcveRNP82ufLLCRDmgiQk32kUPB4REteiJTGotI 7vzCO0kCEjmw6zI2hluMHLonj96MpUZ0V21fGXT4oh6ijCv/yXmMTPHUDYAZLwkcjBRm ed4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=uPSPXBMt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20-v6si6566522pgk.87.2018.09.06.15.45.56; Thu, 06 Sep 2018 15:46:11 -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; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=uPSPXBMt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728263AbeIGDUG (ORCPT + 99 others); Thu, 6 Sep 2018 23:20:06 -0400 Received: from imap.thunk.org ([74.207.234.97]:60732 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbeIGDUF (ORCPT ); Thu, 6 Sep 2018 23:20:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=slsTku73Cxw/ihQxR6Z0iOhKkYfMux615hAUa0qRy7U=; b=uPSPXBMtkyaLBYDSRCqYIoLG0y U1MfNTK/A7Zbog4x2EYn7VQGB7512NmJsfykl4Euv51SloLdMbqbI4psG60ORH5WnTR5zcSft1qQS 6ngyqQUuR2OZKntpk55zBzqUcootRkVPgq8jRmyOl0l4w4FP7RslBEUzqZFXZ+DLcmq0=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fy2yZ-0007vp-Dx; Thu, 06 Sep 2018 22:42:11 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id A19477A5675; Thu, 6 Sep 2018 18:42:10 -0400 (EDT) Date: Thu, 6 Sep 2018 18:42:10 -0400 From: "Theodore Y. Ts'o" To: Bart Van Assche Cc: Xuewei Zhang , "James E . J . Bottomley" , "Martin K . Petersen" , Ming Lei , Hannes Reinecke , Christoph Hellwig , Paolo Bonzini , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Kali , Guenter Roeck , maze@google.com Subject: Re: [PATCH] scsi: sd: Contribute to randomness when running rotational device Message-ID: <20180906224210.GK5098@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Bart Van Assche , Xuewei Zhang , "James E . J . Bottomley" , "Martin K . Petersen" , Ming Lei , Hannes Reinecke , Christoph Hellwig , Paolo Bonzini , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Kali , Guenter Roeck , maze@google.com References: <20180906203719.209399-1-xueweiz@google.com> <1536272873.26747.11.camel@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536272873.26747.11.camel@acm.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 03:27:53PM -0700, Bart Van Assche wrote: > > Although this patch looks fine to me, seeing this patch makes me wonder > whether the default should be changed (QUEUE_FLAG_MQ_DEFAULT) instead of > modifying the sd driver. Can anyone remind me why QUEUE_FLAG_MQ_DEFAULT does > not include QUEUE_FLAG_ADD_RANDOM? There was a discussion about a number of *years* ago; blk-mq has been baking for a very long time. In the early days of block_mq, the overwhelming percentage of the users of blk-mq where those who were using PCIe attached flash. So when, I raised this question, the argument was that SSD users have no entropy. Which I agree with; but now that blk-mq is the default, and hard drives are using blk-mq, it's time for a patch like Xuewei's. Cheers, - Ted