Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp185264ybj; Fri, 8 May 2020 09:18:41 -0700 (PDT) X-Google-Smtp-Source: APiQypKBNZExt/07bfnzvvL3zJxs6YIaWm5TFRHRKW+GMOp41h8h0flNUo2uIw0zS9zOoqeJg7zM X-Received: by 2002:a50:f005:: with SMTP id r5mr2593681edl.376.1588954721046; Fri, 08 May 2020 09:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588954721; cv=none; d=google.com; s=arc-20160816; b=Ysy8zS/9Fn8j1M4xm4HehyBTIjh10JwRzRXxfbJ33gulMQj0r0OQRsUD3qRqBBOxyS dnRiqn08qNxH9ZalECN6Dj86QwZIpja0CTSXjUwP5UEK3CI1LCk6XPBxglKsQzDPLf/V 8XVs8BtomCmsjGL9Z4Yeo8uCY6UulxruWqbO7FWAQcTnoPP/gz/zfRTJFHOjfYsMgQlm Ts6BXoKZjGOMXuUA9ZAZA3aG3U2SF/AT6XIr9aStgp09f/ESnShDSVyDnTsQKdpya/u1 dDsPucsdKCSr++mjbmtpeD/ZIdcjZn5ItCozE5lOPf+L0Yt3RqQgKyL8HzS5jv1yg5e0 gtDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rZtsV1PDBMttxVZ0UQKr9n1WRMbI8yQyqdUS8peoGRI=; b=TUE92ewtuWe+zX1l8BoxTdrZ07Le6/i9UNp1MZMMjWIyHRQVPPQ2Mcl5Pk9i7h5v1G Ugw/RcX0cL7YTv3dZ+RWZMepIi+yDCGdtFo1vZZ/Y+FZ1KGjSwzFxhlEbAq/Y1nI2cVH +V+If1uloB7GA9d9mVKiA+QRkDiQo68lxcu7n0Wy65sTC+ZxIAk1K1lwBQBTw7zDFLbc 9h9i0DwK8FE9GEbHouTE/sHCDAQ/70iNmGYwDuLnbH4h7bQXnv2N8sx7La8bdfQb7FMQ pzOyBH87Y8mJCOvJczP3rgLItbhhMw/xvFUEzc7142bPR/m5T9Hspfx6B0tli5JMTZEb v/Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lwbrDiZR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si1200600eju.299.2020.05.08.09.18.17; Fri, 08 May 2020 09:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lwbrDiZR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728573AbgEHQQM (ORCPT + 99 others); Fri, 8 May 2020 12:16:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbgEHQQE (ORCPT ); Fri, 8 May 2020 12:16:04 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0457C061A0C; Fri, 8 May 2020 09:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=rZtsV1PDBMttxVZ0UQKr9n1WRMbI8yQyqdUS8peoGRI=; b=lwbrDiZRTLg37IrLiDUB1xU6OB XQ5Yja7qHRUxU0W9ZWUn/ofYF/eNcFQEGhja1Sno6TfsoqgdOxl36hEOZBaMPzBztAndx4GWjnlFw ftI0M9CJzMZ7ZbReKJapBuhwamtRkaGgCNvVlT4GREU3byg+o0mo4BLbfbSJZwpYLvAW5AGuHkSmw IbVlPxX1BVr1XMNjcXOKVht9vSCLQD/E+FykqUvb7pBxc+gb0ZA/st2VP9Bu0mTIbFoQ2iJNgZpN1 3Q1aZzgQ82hMy8J9tYWVlKyEFGz/MNiDE01wdHaBJ628HjW1z6HvjLHdwq8UIEHfpdeXqrN5ixxkg ToFrPouQ==; Received: from [2001:4bb8:180:9d3f:90d7:9df8:7cd:3504] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jX5fM-0004oE-Ap; Fri, 08 May 2020 16:16:01 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Jim Paris , Geoff Levand , Joshua Morris , Philip Kelleher , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [PATCH 13/15] nvdimm/blk: stop using ->queuedata Date: Fri, 8 May 2020 18:15:15 +0200 Message-Id: <20200508161517.252308-14-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508161517.252308-1-hch@lst.de> References: <20200508161517.252308-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- drivers/nvdimm/blk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/nvdimm/blk.c b/drivers/nvdimm/blk.c index 43751fab9d36a..ffe4728bad8b1 100644 --- a/drivers/nvdimm/blk.c +++ b/drivers/nvdimm/blk.c @@ -165,7 +165,7 @@ static int nsblk_do_bvec(struct nd_namespace_blk *nsblk, static blk_qc_t nd_blk_make_request(struct request_queue *q, struct bio *bio) { struct bio_integrity_payload *bip; - struct nd_namespace_blk *nsblk; + struct nd_namespace_blk *nsblk = bio->bi_disk->private_data; struct bvec_iter iter; unsigned long start; struct bio_vec bvec; @@ -176,7 +176,6 @@ static blk_qc_t nd_blk_make_request(struct request_queue *q, struct bio *bio) return BLK_QC_T_NONE; bip = bio_integrity(bio); - nsblk = q->queuedata; rw = bio_data_dir(bio); do_acct = nd_iostat_start(bio, &start); bio_for_each_segment(bvec, bio, iter) { @@ -258,7 +257,6 @@ static int nsblk_attach_disk(struct nd_namespace_blk *nsblk) blk_queue_max_hw_sectors(q, UINT_MAX); blk_queue_logical_block_size(q, nsblk_sector_size(nsblk)); blk_queue_flag_set(QUEUE_FLAG_NONROT, q); - q->queuedata = nsblk; disk = alloc_disk(0); if (!disk) @@ -268,6 +266,7 @@ static int nsblk_attach_disk(struct nd_namespace_blk *nsblk) disk->fops = &nd_blk_fops; disk->queue = q; disk->flags = GENHD_FL_EXT_DEVT; + disk->private_data = nsblk; nvdimm_namespace_disk_name(&nsblk->common, disk->disk_name); if (devm_add_action_or_reset(dev, nd_blk_release_disk, disk)) -- 2.26.2