Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5340271ybi; Wed, 12 Jun 2019 00:32:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDv+OhuaMtGz28lgjSC0N/kharmOr04C/eUxAYVWsoJl/pFJ7V2c8ku8gEIZU8ixF8yFaI X-Received: by 2002:a17:902:2862:: with SMTP id e89mr80966661plb.258.1560324737995; Wed, 12 Jun 2019 00:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560324737; cv=none; d=google.com; s=arc-20160816; b=czbasq12qZaQEi7w1Sqm/HCytg+4MmLCIOQupe516rVGlRbRD5S6VLG4ogh6gFsrbO +hOU5OTQTB+qaiQ1BkUd5QqsGhBlaudleq7lpH0uBMHuuc4CKkXuGaVazuWRBv1hVh1o NUxlbxRtSVtLGPTxonry5TRPlyhRTp7X7Z5wcYmwWaoy7fhJ64G+w1/7MF+boDLNTDoF 2sT/D65r8JdG2HJZKjsUN+x8Gytm1IBTHKY4VjH35LlQAhUAzFKLUa/5Z54DFRuZP6Wk PaH+6BVSrSRNS0u3R9nq1vi4/jozOCjGGaeyQijHswT5cIelIiA8F1BlU49/tQVwS62C c1kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=mM3oedhxi+OxNqiT+RlkF2AMY0hNI5sUdZNn1NwQUt0=; b=UKcgKdggmUYifNDmJbBos2a8hF83IItVWAaPXZcDT7k0wic0FmJK/92GqNnais6yHr stsLx6Z5Cmy/dGTmC3vSz/DQVyUuCCiVDY9XO2xHOY30QSQnZTyDSH65REgNkJZaGsll 8iRPIr6dPs+UpHtkKnwOI6suLpiosz/KCgWrXyRcE9J9lU2Ecv81DYAt66XFx7jI9STr lVBb6UzS17n+xipoRa7BSrbU09axCI7A2Pn9130v74aY+vSel0c66oX7AICXdE1pWEbZ wvXeV1a21NOmAkWs1AB6JKcHPQBrDiycu4vW78Xl9vxS5Hpodxxyr1MLqsbiNfC8CUDf bcAQ== 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; dmarc=fail (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 j17si15430876pfr.13.2019.06.12.00.32.00; Wed, 12 Jun 2019 00:32:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408412AbfFLCXN (ORCPT + 99 others); Tue, 11 Jun 2019 22:23:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34806 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405661AbfFLCXN (ORCPT ); Tue, 11 Jun 2019 22:23:13 -0400 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 mx1.redhat.com (Postfix) with ESMTPS id 63D5C3082E03; Wed, 12 Jun 2019 02:23:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 32A02648BF; Wed, 12 Jun 2019 02:23:11 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2391624B25; Wed, 12 Jun 2019 02:23:10 +0000 (UTC) Date: Tue, 11 Jun 2019 22:23:09 -0400 (EDT) From: Pankaj Gupta To: Mike Snitzer Cc: cohuck@redhat.com, jack@suse.cz, kvm@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, david@fromorbit.com, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, dm-devel@redhat.com, adilger kernel , zwisler@kernel.org, aarcange@redhat.com, dave jiang , jstaron@google.com, linux-nvdimm@lists.01.org, vishal l verma , david@redhat.com, willy@infradead.org, hch@infradead.org, linux-acpi@vger.kernel.org, jmoyer@redhat.com, linux-ext4@vger.kernel.org, lenb@kernel.org, kilobyte@angband.pl, rdunlap@infradead.org, riel@surriel.com, yuval shaia , stefanha@redhat.com, pbonzini@redhat.com, dan j williams , lcapitulino@redhat.com, kwolf@redhat.com, nilal@redhat.com, tytso@mit.edu, xiaoguangrong eric , darrick wong , rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, imammedo@redhat.com Message-ID: <332155967.34508010.1560306189624.JavaMail.zimbra@redhat.com> In-Reply-To: <20190611171416.GA1248@redhat.com> References: <20190611163802.25352-1-pagupta@redhat.com> <20190611163802.25352-5-pagupta@redhat.com> <20190611171416.GA1248@redhat.com> Subject: Re: [Qemu-devel] [PATCH v12 4/7] dm: enable synchronous dax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.70, 10.4.195.27] Thread-Topic: enable synchronous dax Thread-Index: 7O59Nmg+n8QzGpvkvBkkxWqWG8w3fA== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 12 Jun 2019 02:23:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Tue, Jun 11 2019 at 12:37pm -0400, > Pankaj Gupta wrote: > > > This patch sets dax device 'DAXDEV_SYNC' flag if all the target > > devices of device mapper support synchrononous DAX. If device > > mapper consists of both synchronous and asynchronous dax devices, > > we don't set 'DAXDEV_SYNC' flag. > > > > 'dm_table_supports_dax' is refactored to pass 'iterate_devices_fn' > > as argument so that the callers can pass the appropriate functions. > > > > Suggested-by: Mike Snitzer > > Signed-off-by: Pankaj Gupta > > Thanks, and for the benefit of others, passing function pointers like > this is perfectly fine IMHO because this code is _not_ in the fast > path. These methods are only for device creation. > > Reviewed-by: Mike Snitzer Thank you, Mike Best regards, Pankaj > >