Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5019651ybi; Tue, 28 May 2019 06:21:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXhv9WMV1y2nVGKPAz6jdY/jeWvObUykkBGbRRLHCj5LzKtD+nDmszhJWuZt/Rj67bnr20 X-Received: by 2002:a17:902:2983:: with SMTP id h3mr108996253plb.267.1559049664110; Tue, 28 May 2019 06:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559049664; cv=none; d=google.com; s=arc-20160816; b=dY2Z/+eT81oOhu2bg4zbamN2M1JvYfh07+LuatJqPiVgvXRB/8BcwI8vW75CnYtj28 Lif+nZmaXvY0x9h7az1uScusIju5uNhnXQvXtTBZxPFl8V8BpH4TVntbiiqjti9PHWTg t9OHXK/udXIDYdY+RascNT7sj+eRgZHEjD/2TBdceojQzPbYGz3PP+dDSCs3JGO9OMqX kQuaVJd98FDl6bTOoaB7NQ2JO9gpmNG0sRyAolRx1K1S6pBL1rNYQcblxMg341p3JVCx ofn4AGIVIxkNbp76e/M89cEEzkIHI/cj21I8bsDhQ9C0/T/I2fGITlDb5AHDHH0mmNV+ z7Xw== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qcTvsk+UCfbFdsEXKr8TQrbFAEGJURQ/pQgVJPeH+oQ=; b=WxG+g3HUze26W7ie1erS7ZQywIAD1jKq5XIYYhmWa3+XnDUjUkAYrDD4qL0cBA0SDA XPo+EvN+n4to7oVLGLT8UPRc6x+EkQ5XW8N9BYlKbCDWAdB45+F+3dKSLNWu6dZUn4oB f8Jl6BPMD0LoE1mgrrqumrypP+xwXQ/IbtYlhQveuBCxwqjtcyWsJdTurcz8iiiqlkls ARbLZRixllxIXTHti4qZ71PSz4FdlNnFA10p672nBbkfUwhfwvObPIFeSYzW5Ot3z7/f imjsoS/vhw8QoDxXByysiy1pI4NRoFYZkVWV8XPHxJ7TB0mBl/eyMxnO04uXyEnznezN rYHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=BC4MXGYk; 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 gn18si6431548plb.273.2019.05.28.06.20.48; Tue, 28 May 2019 06:21:04 -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=pass header.i=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=BC4MXGYk; 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 S1727400AbfE1NS2 (ORCPT + 99 others); Tue, 28 May 2019 09:18:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37114 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfE1NS2 (ORCPT ); Tue, 28 May 2019 09:18:28 -0400 Received: by mail-wr1-f67.google.com with SMTP id h1so6063066wro.4 for ; Tue, 28 May 2019 06:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=qcTvsk+UCfbFdsEXKr8TQrbFAEGJURQ/pQgVJPeH+oQ=; b=BC4MXGYkZQXy7mqJmMNGHymVJrDjsFp/KA9IBtrHKACQLKTh7DdwsUOpOXDRRnvTUE C8u4d908Y9r0cs/LHiMylSt8p5MEgvrCcac0EDtsLfevNMWT+uRoCSVXvs+IISFPvtDj lo7t5LUntMEa6tHXudTVRTruZJ7gRJQZUCgSfwYkNgJXQkHmrPapVFfirswTJ/D2I6yb w2e94VR6C0zuXejCbbj3p1KMnUeRDJD8aCZfOi/YiyTzxkdkNNShBaGLZQr6payyb9eZ Tup3fCxgZ5YVfJY32BD6h7yCgAxr7mDxGKjFewbUBre3uDNnhZ7QD8dmtysyCRfgOWYj +2Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qcTvsk+UCfbFdsEXKr8TQrbFAEGJURQ/pQgVJPeH+oQ=; b=G9cjWZv7hMfFrjbeGbL21C13cf9U5sKfmF2YqpbvOXshFbC3xA3ZqAIldheJlZmZ3F I+hzgFdDnLDXOisYDSv5/qj3frrutWj6BAnu2gS2Tlyhpe03jEy6Ivt9BTjuGwaGv6ES /FQKhZxggoL6lOmhug9x0pEc2iSbj9uj9Mxvoxx9UPrswU5BHgvfpSdJtoOorjG9/VvL 5k1Zgv6TdfL9j+c2b76JZsepBlYVy9xw/668S51CCsUmcR5Fk1T82JoR/UqpuHhcaMwM boiYaLMoo8O6jOtQux7UlVkYjLC5EgmEBPNp4N4GHUaixnbhpax513gdwRca/EnjcD+M yuzg== X-Gm-Message-State: APjAAAVVGRgyK42vONFe9q5prcM0IL+U7gxXpw6+yFdg5HOvAH2abhjU emkq3A5Uy7IJqXPsjbWTlhL6JYDf8mI= X-Received: by 2002:adf:db89:: with SMTP id u9mr40797993wri.294.1559049506335; Tue, 28 May 2019 06:18:26 -0700 (PDT) Received: from soda.linbit (212-186-191-219.static.upcbusiness.at. [212.186.191.219]) by smtp.gmail.com with ESMTPSA id i15sm13040650wre.30.2019.05.28.06.18.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 06:18:25 -0700 (PDT) Date: Tue, 28 May 2019 15:18:23 +0200 From: Lars Ellenberg To: Eric Wheeler Cc: drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drbd: fix discard_zeroes_if_aligned regression Message-ID: <20190528131823.GD5803@soda.linbit> Mail-Followup-To: Eric Wheeler , drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org References: <15124635.GA4107@soda.linbit> <1516057231-21756-1-git-send-email-drbd-dev@lists.ewheeler.net> <20180116072615.GA3940@infradead.org> <20180116094907.GD4107@soda.linbit> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 10, 2019 at 05:36:32PM +0000, Eric Wheeler wrote: > Hi Lars, > > We just tried 4.19.x and this bugs still exists. We applied the patch > which was originally submitted to this thread and it still applies cleanly > and seems to work for our use case. You mentioned that you had some older > code which zeroed out unaligned discard requests (or perhaps it was for a > different purpose) that you may be able to use to patch this. Could you > dig those up and see if we can get this solved? > > It would be nice to be able to use drbd with thin backing volumes from the > vanilla kernel. If this has already been fixed in something newer than > 4.19, then please point me to the commit. I think it was merged upstream in 5.0 f31e583aa2c2 drbd: introduce P_ZEROES (REQ_OP_WRITE_ZEROES on the "wire") -- : Lars Ellenberg : LINBIT | Keeping the Digital World Running : DRBD -- Heartbeat -- Corosync -- Pacemaker : R&D, Integration, Ops, Consulting, Support DRBD? and LINBIT? are registered trademarks of LINBIT