Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp187580ybj; Fri, 8 May 2020 09:21:57 -0700 (PDT) X-Google-Smtp-Source: APiQypL4hafsT9qgiaoqB/5RVZ6hycDGTs5fU8nYlNwN5bifxYXcxdxSNbElQUo/zCJqF4liX6MW X-Received: by 2002:aa7:d9d8:: with SMTP id v24mr2723852eds.27.1588954917518; Fri, 08 May 2020 09:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588954917; cv=none; d=google.com; s=arc-20160816; b=yTU5mXFInnj7K1uZ8v9A8RR4796sriOrfFGcq8WRdNhl7xoPedHKKoFN9/mRVjh3rh lKw1Fc/K0lC4g0iNMkTlSq7vnvrrWRIIup9jkCfJQYduLMC9PhI8IGD5Osba3BRvBJYC pnMDR3f0ldrnS0eSZTJTCcRfxOkXYQvB5YS0VGzu7cGZ4YpP5EGI34chU5tKD5d3qLv5 8fT1MeyGX89h3e7Y+NcRM59Z4mkTPJ3+RoyAq2pSRRoYDuWme/JrcgtIc9Sy6lXUW2P9 gxdEVOQrSe/tr+h/52E0ypoYKKdy8uaKS5mytQJ3u6RqMH2my3syz/tk18qa4cCNFrZs AuxQ== 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=z+5kJZZyByJU3IJf1jfbVMQe+NBGne9Opxw8kiFryiE=; b=TPeYfC9lHMNOPewi5PQPAEandOHtLXBm1f7R8fraJrroDgClb4SFFIUCztafttD7ej NgIjGbJeQPJgZyMQCu5pLIXCR6ldpVCov0hPWAjIAm4aDQ6TH67pYJBY/UM6RxSqxD5E W7yeHeoEhKsRShIX9rA8hLIb255XFfF7nloW7dn+6h5r5b9c8EslRb+nUWPMnN0RC4El H9vExLoEnIkI274c6OJMicy9ofNsGuDcQ6TJNXCU7ht/cUHivoWRW0aDRwEkhJIMr6mA C9u3CaPZWafOAQUI0mpAihscBR8XDgzkCB5knNW61uI9QmUBBjr/XFCIg0lPqXLvwBoM V+7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cG6SbF5P; 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 a3si1234196edv.206.2020.05.08.09.21.34; Fri, 08 May 2020 09:21:57 -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=cG6SbF5P; 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 S1728656AbgEHQRB (ORCPT + 99 others); Fri, 8 May 2020 12:17:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728367AbgEHQPn (ORCPT ); Fri, 8 May 2020 12:15:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96760C061A0C; Fri, 8 May 2020 09:15:43 -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=z+5kJZZyByJU3IJf1jfbVMQe+NBGne9Opxw8kiFryiE=; b=cG6SbF5PQ7oinj68xTV0bxGkzU sSFsFa44SLrYmDofMrNmW8/LDzdnOfreAd34wq44I/1C58olU5fTmwxxvc2B3BLkoYp24cMIakjwn DaECxZsQupFliUoUpSvJgMyluftD2dNLF34WVal/3hfin8pJeMaS00hYZT0pweKml+djpcE8eMEX1 VemE6evj0iMC5TESsIOKRLOOyJYG5I7PnVDdIt9FC27a9d5Qua4My20QC83rXzH7Zfm/+r1oJlXeU 4oxyUY2LxQKfpZN1tlAi/NjGwh64ftFg2BXDbO0lSq8bR+qqkurXuUJryI+ffIUyDPbDDZfLND+9T k2rxQMVw==; 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 1jX5f0-0004fd-7i; Fri, 08 May 2020 16:15:38 +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 06/15] rsxx: stop using ->queuedata Date: Fri, 8 May 2020 18:15:08 +0200 Message-Id: <20200508161517.252308-7-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/block/rsxx/dev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/block/rsxx/dev.c b/drivers/block/rsxx/dev.c index 8ffa8260dcafe..6dde80b096c62 100644 --- a/drivers/block/rsxx/dev.c +++ b/drivers/block/rsxx/dev.c @@ -133,7 +133,7 @@ static void bio_dma_done_cb(struct rsxx_cardinfo *card, static blk_qc_t rsxx_make_request(struct request_queue *q, struct bio *bio) { - struct rsxx_cardinfo *card = q->queuedata; + struct rsxx_cardinfo *card = bio->bi_disk->private_data; struct rsxx_bio_meta *bio_meta; blk_status_t st = BLK_STS_IOERR; @@ -282,8 +282,6 @@ int rsxx_setup_dev(struct rsxx_cardinfo *card) card->queue->limits.discard_alignment = RSXX_HW_BLK_SIZE; } - card->queue->queuedata = card; - snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), "rsxx%d", card->disk_id); card->gendisk->major = card->major; @@ -304,7 +302,6 @@ void rsxx_destroy_dev(struct rsxx_cardinfo *card) card->gendisk = NULL; blk_cleanup_queue(card->queue); - card->queue->queuedata = NULL; unregister_blkdev(card->major, DRIVER_NAME); } -- 2.26.2