Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3631085ybl; Tue, 21 Jan 2020 04:26:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyqn1FV61fOh8bJko8WmRiVjUhA3dA4obn5X4Dox5ZQqslrLONlsfkqMe2YpKlsQhY/vMDl X-Received: by 2002:a05:6830:145:: with SMTP id j5mr3239554otp.242.1579609593695; Tue, 21 Jan 2020 04:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579609593; cv=none; d=google.com; s=arc-20160816; b=epO9D0aE/zECl6lB3PK+zynQYcgL/ZLZeKJdxKBcKXkC8CkzGZ3TtEtDkTy3ujCLBR +xrCUyUp6/BOqG/vyegjWcCqaHqvQtWs2mhoWHVzUjohoShxYvCLtzt5fvEqu4zJ7Aav DJQgFHYmovZihYIvtw//uYJj0QZ1TY7yclVrtCBf2K/rMgKQ86WrK+HZEPkAw3CbZSyH j/bE/QOMdXfA6kaPx1zXVvcofKkPKt9CzNIOCW6RGANm8aHVVgSkYLMExbWrfcivgSh1 +CCb1bBC7O4Ae/TuHNFQgjw6NKIiucwkIi/VJYLjyNJnYKKyVEHSEtkz8n6KGokgnlIA leCQ== 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:dkim-signature; bh=ksHPSbakxXNR8cEUw6z99EW4vRwmmJQjKBoAiN1aeVg=; b=pVN7Lp+YpTBRxY85E201fM73ht2RYWD8MtWReEyH/9rpxRyCEtq0N6Z+U/BMRKoLcQ cBqfkwhRM8aWgR6ZqT7oVflTG3twDLvUNl4MuXu6yKeTuGavP94WCtsIOnvWMhvgvYSS y8MgdA1igZ5ep6tnFAMHKW1MfXBXtEDy8jQIXdtEkZXEDUJJ1zQCnso2pHwDZFEvVKXd FVNlZkvUYabtFTIn2rV6SZFtOe38WDmv4n0Uzay36qtuh1nS72p+P2MLzOWShnOM7HI/ UUFVHqXpWAd9AtOqHwSkpvOmvtSLauLb8WdeHxY52qT+V+Qj/+SuwgxfP9iTVaTpEUyu eH1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UHM+BReN; 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=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 185si18794033oie.52.2020.01.21.04.26.21; Tue, 21 Jan 2020 04:26:33 -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=@redhat.com header.s=mimecast20190719 header.b=UHM+BReN; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729106AbgAUMZO (ORCPT + 99 others); Tue, 21 Jan 2020 07:25:14 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:39587 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727173AbgAUMZN (ORCPT ); Tue, 21 Jan 2020 07:25:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579609512; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ksHPSbakxXNR8cEUw6z99EW4vRwmmJQjKBoAiN1aeVg=; b=UHM+BReNr1/53eHcdfiXlOkxU7imFlI9Rt/2/RWHWtgF9d25PW+rCcmIpXv2Zjb0r/m/rH Boy6eFA0w0u97JRghX4gb6E18jwJNw+LIue031WwLo9LAVswXOp+RtkgnrOJ5ve5XrFTvX 7Q1bYKnuglImwSVaSAIuzGmdmEpYA7k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-161-cTu5te75Nq2wWKiYoY0C_g-1; Tue, 21 Jan 2020 07:25:09 -0500 X-MC-Unique: cTu5te75Nq2wWKiYoY0C_g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E1CF3800D4C; Tue, 21 Jan 2020 12:25:05 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B78508BE17; Tue, 21 Jan 2020 12:24:59 +0000 (UTC) Date: Tue, 21 Jan 2020 07:24:59 -0500 From: Mike Snitzer To: Kirill Tkhai Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, martin.petersen@oracle.com, bob.liu@oracle.com, axboe@kernel.dk, agk@redhat.com, dm-devel@redhat.com, song@kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, Chaitanya.Kulkarni@wdc.com, darrick.wong@oracle.com, ming.lei@redhat.com, osandov@fb.com, jthumshirn@suse.de, minwoo.im.dev@gmail.com, damien.lemoal@wdc.com, andrea.parri@amarulasolutions.com, hare@suse.com, tj@kernel.org, ajay.joshi@wdc.com, sagi@grimberg.me, dsterba@suse.com, bvanassche@acm.org, dhowells@redhat.com, asml.silence@gmail.com Subject: Re: [PATCH v4 6/7] dm: Directly disable max_allocate_sectors for now Message-ID: <20200121122458.GA9365@redhat.com> References: <157960325642.108120.13626623438131044304.stgit@localhost.localdomain> <157960337238.108120.18048939587162465175.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <157960337238.108120.18048939587162465175.stgit@localhost.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 21 2020 at 5:42am -0500, Kirill Tkhai wrote: > Since dm inherits limits from underlining block devices, > this patch directly disables max_allocate_sectors for dm > till full allocation support is implemented. > > This prevents high-level primitives (generic_make_request_checks(), > __blkdev_issue_write_zeroes(), ...) from sending REQ_ALLOCATE > requests. > > Signed-off-by: Kirill Tkhai > --- > drivers/md/dm-table.c | 2 ++ > drivers/md/md.h | 1 + > 2 files changed, 3 insertions(+) You're mixing DM and MD changes in the same patch. But I'm wondering if it might be best to set this default for stacking devices in blk_set_stacking_limits()? And then it is up to each stacking driver to override as needed. Mike