From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from newverein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E22E721E47D48 for ; Thu, 24 Aug 2017 23:58:30 -0700 (PDT) Date: Fri, 25 Aug 2017 09:01:04 +0200 From: Christoph Hellwig Subject: Re: [PATCH 1/2] xfs: cache dax_device lookup result Message-ID: <20170825070104.GA9103@lst.de> References: <150362134292.39142.1715377949592729029.stgit@dwillia2-desk3.amr.corp.intel.com> <150362134833.39142.12423673180125514125.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <150362134833.39142.12423673180125514125.stgit@dwillia2-desk3.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: jack@suse.cz, "Darrick J. Wong" , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@lst.de List-ID: > + bdev = bt->bt_bdev; > + if (!blk_queue_dax(bdev->bd_queue)) > + return NULL; > + > + if (!bt->bt_daxdev) > + bt->bt_daxdev = fs_dax_get_by_host(bdev->bd_disk->disk_name); > + > + return bt->bt_daxdev; Please do this at mount time. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:53537 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754018AbdHYHBF (ORCPT ); Fri, 25 Aug 2017 03:01:05 -0400 Date: Fri, 25 Aug 2017 09:01:04 +0200 From: Christoph Hellwig To: Dan Williams Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, jack@suse.cz, hch@lst.de, "Darrick J. Wong" Subject: Re: [PATCH 1/2] xfs: cache dax_device lookup result Message-ID: <20170825070104.GA9103@lst.de> References: <150362134292.39142.1715377949592729029.stgit@dwillia2-desk3.amr.corp.intel.com> <150362134833.39142.12423673180125514125.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150362134833.39142.12423673180125514125.stgit@dwillia2-desk3.amr.corp.intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > + bdev = bt->bt_bdev; > + if (!blk_queue_dax(bdev->bd_queue)) > + return NULL; > + > + if (!bt->bt_daxdev) > + bt->bt_daxdev = fs_dax_get_by_host(bdev->bd_disk->disk_name); > + > + return bt->bt_daxdev; Please do this at mount time.