Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp398283ybg; Sun, 26 Jul 2020 08:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+5OtMLbBrC1vlcv2hnC6cqi8PtAzONxoLZdkE8lPna1MhZel2kpcuU2TzCLQi1c0OOP1E X-Received: by 2002:a17:906:4356:: with SMTP id z22mr18013845ejm.414.1595775989968; Sun, 26 Jul 2020 08:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595775989; cv=none; d=google.com; s=arc-20160816; b=IBtOUbPPE9yUFoOD73cPqOB8WqCLTZsIXXFPnjY1DLuX4lUZVLTKMN25sJ4u+Dq3rt crEw+ZznlVhB6j9ACAs6UHwl7WOJbVoHlxVIxs3ly0LrFZGjGjiZuvrtoq8tzdUQOlim OQqtMR1Snd5qhtGfmxJaBSdQdQUKS7F6hH+KkUsvjZrTswLQc13jYJmWb1arMFiNASQE o8HiRj9XedQjhUx4mB7fo9XuTEaOW0F3cf+dOxRMbcLNF3fVT4fHQrNnPff5AhdvWaBh caYmhTkKn3x1HIm92m7NsZPJD5NwtVteV9Rpcesr6+zKH1vAWvToDboRKbWIK5TJkgwM idmw== 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=S8Ttwcc94B0Xl9tEeP23NWmZAdd1Fm0GDSqESxJAyFs=; b=ijsMCeFqLoZNOG63Zql9PcWZiP+XQBu+AcFw050jVBSsgx0+7OS1em/P73B0nhpE5f 5OkE7Emkzwk3K6r9AK6fLmsYgZz/FQqhmzAxBiVN3RzwGoYCJVsbrVPegRF/hBAzGqoI unIXGhpg1LAnk6c8ODbOHf5UX2MMt6mNdsYDUYT7Hxfbct8+zt+172zHKdLCaqABFVal WlOis0xJVTRQBxK7gcBLcJYOVoUhKDlneRoq2+4pHeDgp8RVTRgBe2iFwtKQcyu3s33f /Iglh+RGqgMSlFmce+AO+qpBT/V4NPHhwv0tFDGnX9O1QVirpCAV/2k/KXukJ+sEd+Oc vHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YMWzVCgz; 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 s18si4125127edx.6.2020.07.26.08.06.08; Sun, 26 Jul 2020 08:06:29 -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=casper.20170209 header.b=YMWzVCgz; 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 S1727923AbgGZPFD (ORCPT + 99 others); Sun, 26 Jul 2020 11:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbgGZPDw (ORCPT ); Sun, 26 Jul 2020 11:03:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA3AC0619D2; Sun, 26 Jul 2020 08:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=S8Ttwcc94B0Xl9tEeP23NWmZAdd1Fm0GDSqESxJAyFs=; b=YMWzVCgzX29h5w6kZFM6oUoNMr 9gXLP/Ib5QVPfsZG0AAn/rXKE+D/N2C8DnBZzhv3p4q+7Hvzj4rXtmv1GWAV6nNCHkYnow6VnUeGb tfg7+LutO+I7qgJihKfLNV0bioQiwOd7ue+CPYdTYIJKpWq+05hnuInoQy1ujJQexg4BRsGSlIz2Z YZ7J8pfIWExlvsv9pgxeI1cIQvPqFjaJ3zRlmz7+bHnAJieME2sgtOnGvFS+Opg0XaNy/I+HY6ox/ qofchlkyZcbtNwfFSRr4nu6fEXNekMBd5Rs/0KLFlzA4MdQTFmHHa3ICI8wvaZJWqiBY1fFhGVFrd 8CX0M/+w==; Received: from [2001:4bb8:18c:2acc:2375:88ff:9f84:118d] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jziBh-0005g2-F1; Sun, 26 Jul 2020 15:03:41 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Song Liu , Hans de Goede , Richard Weinberger , Minchan Kim , linux-mtd@lists.infradead.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Johannes Thumshirn Subject: [PATCH 03/14] drbd: remove RB_CONGESTED_REMOTE Date: Sun, 26 Jul 2020 17:03:22 +0200 Message-Id: <20200726150333.305527-4-hch@lst.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726150333.305527-1-hch@lst.de> References: <20200726150333.305527-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.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 This case isn't ever used. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/block/drbd/drbd_req.c | 4 ---- include/linux/drbd.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 674be09b2da94a..4d944f2eb56efa 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c @@ -901,13 +901,9 @@ static bool drbd_may_do_local_read(struct drbd_device *device, sector_t sector, static bool remote_due_to_read_balancing(struct drbd_device *device, sector_t sector, enum drbd_read_balancing rbm) { - struct backing_dev_info *bdi; int stripe_shift; switch (rbm) { - case RB_CONGESTED_REMOTE: - bdi = device->ldev->backing_bdev->bd_disk->queue->backing_dev_info; - return bdi_read_congested(bdi); case RB_LEAST_PENDING: return atomic_read(&device->local_cnt) > atomic_read(&device->ap_pending_cnt) + atomic_read(&device->rs_pending_cnt); diff --git a/include/linux/drbd.h b/include/linux/drbd.h index 5755537b51b114..6a8286132751df 100644 --- a/include/linux/drbd.h +++ b/include/linux/drbd.h @@ -94,7 +94,6 @@ enum drbd_read_balancing { RB_PREFER_REMOTE, RB_ROUND_ROBIN, RB_LEAST_PENDING, - RB_CONGESTED_REMOTE, RB_32K_STRIPING, RB_64K_STRIPING, RB_128K_STRIPING, -- 2.27.0