Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp729594ybk; Wed, 13 May 2020 11:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFz/HlptzaM2nZfiBNoydmNT3TRUWe3T+8+OQBIxlo3KRwmSiNS3GCr2qJ/msai33rUEUU X-Received: by 2002:a17:906:f112:: with SMTP id gv18mr349223ejb.142.1589394685712; Wed, 13 May 2020 11:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589394685; cv=none; d=google.com; s=arc-20160816; b=WpwRbyACHd3KS8FTbyYeTBYZBSr05uIij1fwXIaJnOpI4VejbDV3/ejgjdKN7m9CmV 0yxrQQKlAvWv0WqQkzMwhOaDkoQK4UG6u1e6I7zxPewjRNw4hiebfj6PK/B1ujYRTM0g LhFrpKzmEv57NcinZB+XMrJlq/kWpgo6yNogmSQ9Rd3IXauM7Vpk8fEKlamzVfr26PjX k/VDJbRnthWOQfZXqGEOP403YyZlIXpppXH0mIa8v7Q15RAlsc7XwCyrUYEEWG6pLlls LoUwTp2xV72IWueqjFF5xXgJHkacIUXgPKldkpS7S4JRu4RB9hXR7185D+Jh36aQMYli h77g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=emdh1TJ/BOavXPYP7sFnrLicJHgO1/H0UyammZ+Vras=; b=s15NaDOIDjjQKgqrWyv7JPZCji/FwAfxgOyT3f5yGznzk+gzH0CSbJ2YObjRDFjo2g yrQ2saTAimkk7ee3dpV8swa9CrIxYFlxFA8AQtpb7z4b7rTyEFAO9FDAg+iHpathUNFY H+N35waktwI7nQc1ujfSv17CQ038WCVFvk35m4F4pKUZia31v++jveuEZH3guCHvkLuT GtKYJzcCx7rVDyl0A/7SFJbYr1auXu/2xmtndar3dQqhVUjp87yszkBXZeUuOLGsfEP6 JEabs7jTcQUzvD/N42CFBxuq8SdMSo9orPXcW9LUBxYP7nhn39o8YLVur65nYms1KDDj nKtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zuYgTbgg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si378588eja.51.2020.05.13.11.31.02; Wed, 13 May 2020 11:31:25 -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=pass header.i=@kernel.org header.s=default header.b=zuYgTbgg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390167AbgEMS3b (ORCPT + 99 others); Wed, 13 May 2020 14:29:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:47032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733310AbgEMS3b (ORCPT ); Wed, 13 May 2020 14:29:31 -0400 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64F53207D0; Wed, 13 May 2020 18:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589394571; bh=QRSsQMrQ74camPjAugEMwP/lQqJBw3KN+yss8wjRYVo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=zuYgTbgg+vneAleokfO2ukKNs/dqZRWw5cokGloCn06DRltmLMyAH0XWH7ZXE6kme ad+FAFkx841tWRfGJCwJuCCrF9NfvNSBS/VNkG+/4QSbaYBUc8DgdG1PYWFgMFsatw bhT63We9c1wVG6MA7eSBOs4coDppYUwq6NJFs550= Received: by mail-lf1-f54.google.com with SMTP id h26so362013lfg.6; Wed, 13 May 2020 11:29:30 -0700 (PDT) X-Gm-Message-State: AOAM533WL1j2HlmGsB4c17HR6omCcifybnCitPOHU0xJYEjH7Mp8fW3f kyuY5C45juVn5EkVOlLpTUZPlFb0QIZYtQTyLA4= X-Received: by 2002:ac2:558e:: with SMTP id v14mr539886lfg.138.1589394568604; Wed, 13 May 2020 11:29:28 -0700 (PDT) MIME-Version: 1.0 References: <20200508161517.252308-1-hch@lst.de> <20200508161517.252308-13-hch@lst.de> In-Reply-To: <20200508161517.252308-13-hch@lst.de> From: Song Liu Date: Wed, 13 May 2020 11:29:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 12/15] md: stop using ->queuedata To: Christoph Hellwig Cc: Jens Axboe , Jim Paris , Geoff Levand , Joshua Morris , Philip Kelleher , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-m68k@lists.linux-m68k.org, open list , 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 , linux-nvdimm@lists.01.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 8, 2020 at 9:17 AM Christoph Hellwig wrote: > > Signed-off-by: Christoph Hellwig Thanks for the cleanup. IIUC, you want this go through md tree? Otherwise, Acked-by: Song Liu > --- > drivers/md/md.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/md/md.c b/drivers/md/md.c > index 271e8a5873549..c079ecf77c564 100644 > --- a/drivers/md/md.c > +++ b/drivers/md/md.c > @@ -466,7 +466,7 @@ static blk_qc_t md_make_request(struct request_queue *q, struct bio *bio) > { > const int rw = bio_data_dir(bio); > const int sgrp = op_stat_group(bio_op(bio)); > - struct mddev *mddev = q->queuedata; > + struct mddev *mddev = bio->bi_disk->private_data; > unsigned int sectors; > > if (unlikely(test_bit(MD_BROKEN, &mddev->flags)) && (rw == WRITE)) { > @@ -5626,7 +5626,6 @@ static int md_alloc(dev_t dev, char *name) > mddev->queue = blk_alloc_queue(md_make_request, NUMA_NO_NODE); > if (!mddev->queue) > goto abort; > - mddev->queue->queuedata = mddev; > > blk_set_stacking_limits(&mddev->queue->limits); > > -- > 2.26.2 >