Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8901453ybi; Tue, 23 Jul 2019 17:42:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKti1ULZnFRydjFa7cBl4oseAGSNwtDgYU7Lkkfi0jk1PlPrF6IlaX87pEXspYShCfQ4ji X-Received: by 2002:a63:d30f:: with SMTP id b15mr78112801pgg.341.1563928955354; Tue, 23 Jul 2019 17:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563928955; cv=none; d=google.com; s=arc-20160816; b=VCS5O0orcFEmdDhlDNsHhlKEFxcBqfEnsJ9OYGSeoDANsXKiY2l4A5lvqbL+zBzvZ0 asfkwnC/6JiqENYkUd1jH5k4TyBxDuThw6wpmKTqhugZOzvx+BN+HNOFRQ50ezQUD0F+ yd4mB1rGGisS9vtBeGK9t7JM2shS9BLRnvHti+A1idpdn76RE5zLpo6rA7bNzQGB1/9n qTsYU6GeVkivCbYUAGh48/QTAvaocZEAFf8ubPlZsT+BUEWWvZ03Bym1T+wWvMb9ifoo ZKKHNgSg8y77AxdmNnT2SsJQMp8btvFvblXvOOrX6ZoXAYOJCY+GN441IMRTWgr50hIE kjKA== 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:message-id:subject:cc :to:from:date; bh=L9tH+4GRa4Uo+L9/MyH4VvmXSn91RAFG2+j5iNVi29w=; b=Ib6EwpZa6CKocwU1bgCGRZqloXdISM3ol+umvI7vR/571NRvkCQIZHNUz1x2+rrt+z 9oOFLlvWHeSifn3MomosuxhlWzIvuk+cUCjV0t5uoJhjXMrHHBDaVMPgYNtwCH7dlVWe axSv1D3K12YH6qiDur5ol/I27hVCv2UbqShJD2TAGoZ9uyN5a+SmbyzCN2XTsuWkKcxZ au1hWeRihETzvGheCChfeZyXYE4dF5usV/oqP1tUusigquNTWeJGKIjaByCjzVhNvPcO YhABsKjGUWFuuVBBek/47dd88osyJPex4C5HH5Tmq5814BXl2wGCvkVrHkHhO+1QFIGO kjLQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si14726688pgi.515.2019.07.23.17.42.19; Tue, 23 Jul 2019 17:42:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387416AbfGWPeY (ORCPT + 99 others); Tue, 23 Jul 2019 11:34:24 -0400 Received: from verein.lst.de ([213.95.11.211]:42726 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbfGWPeY (ORCPT ); Tue, 23 Jul 2019 11:34:24 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2B1D768B02; Tue, 23 Jul 2019 17:34:22 +0200 (CEST) Date: Tue, 23 Jul 2019 17:34:21 +0200 From: Christoph Hellwig To: Guenter Roeck Cc: Christoph Hellwig , Linus Torvalds , Linux List Kernel Mailing , James Bottomley Subject: Re: Linux 5.3-rc1 Message-ID: <20190723153421.GA720@lst.de> References: <20190722222126.GA27291@roeck-us.net> <20190723054841.GA17148@lst.de> <20190723145805.GA5809@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190723145805.GA5809@roeck-us.net> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Does this fix the problem for you? diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 9381171c2fc0..4715671a1537 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1793,7 +1793,8 @@ void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) dma_set_seg_boundary(dev, shost->dma_boundary); blk_queue_max_segment_size(q, shost->max_segment_size); - blk_queue_virt_boundary(q, shost->virt_boundary_mask); + if (shost->virt_boundary_mask) + blk_queue_virt_boundary(q, shost->virt_boundary_mask); dma_set_max_seg_size(dev, queue_max_segment_size(q)); /*