Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1430018ybt; Thu, 9 Jul 2020 06:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvK78V+bIiAM3DAHmBjF9VgV6G8RBiPBD+fqeEOCK/onKHwoBr9VyUXSJfbWodzteYpPCq X-Received: by 2002:a50:f086:: with SMTP id v6mr73931906edl.199.1594303178630; Thu, 09 Jul 2020 06:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594303178; cv=none; d=google.com; s=arc-20160816; b=QCPxubrmy6yyoKC+Ujz494jdPMNbJ7XZWniuIG/RVez7LHDfOX92RqiLBC8G/Yp1lm WfuGgGvJScwkd1WCM4Smnl8bDwJFuhzX4gHieWdL99of9aiwTslbX8O5lbGWG+dyH1dL p0GOKnXMnBgGu1bNy/5JM+tMN7Lb9U1k/BUDBI00DdIYUTO5h/HxSEjnFs9+DSozNI3Y 60BEHdpCakknI2I6eQQD6F7bkwkrKUT2a7TtoFA6ff/l+HLi1EW1hwULrLflp7VsX3mw J0YIHqUu6iVv0xSCxRC5AM6ZIrFzkcBCmHSFyJcCoFSsHzNfvrykvRG4Vk3CwDQNPdNB vwoQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ttUciq1R4DLXwSrCKOG8sMg2/ZhVL4qipuIgKqQy2hE=; b=Orat6oETOo8k7sPJ8Ji/6f30JISmOxptMR4CBqA47IXvl8MldteX98PzY1FtC/T3mn yzZrtVTqgRdQ64UJPf80ghPY3+XoyAV0WdrolHHn3br9GAOlbMvZF14N3LiXlouEug5F ceIPI/ZNuEIjV/EKazv398wYBNPmWrr4ACkv9Hx+SC2wP6DBBw2NOtM/jOBjX7RJpeZH zLeJsm7cjM10GPoGqafrqHcEkKkaytmFtcgbz2y7eXXXhqOG0ZynobmnTgfE7eDh4YX2 CsFK5qtKXVeZ1dnt6hNFYKfM4FPYHXOVj4l0I7XrykJhu9YTqW3X0jADjqoJq/KiE/El ZqwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=coM9AtJu; 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 jp23si1817533ejb.5.2020.07.09.06.59.15; Thu, 09 Jul 2020 06:59:38 -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-dk.20150623.gappssmtp.com header.s=20150623 header.b=coM9AtJu; 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 S1727905AbgGIN7E (ORCPT + 99 others); Thu, 9 Jul 2020 09:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbgGIN7B (ORCPT ); Thu, 9 Jul 2020 09:59:01 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D21E8C08E806 for ; Thu, 9 Jul 2020 06:59:00 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id k23so2364609iom.10 for ; Thu, 09 Jul 2020 06:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ttUciq1R4DLXwSrCKOG8sMg2/ZhVL4qipuIgKqQy2hE=; b=coM9AtJu0ST+XR8OMgywQuHtTrKC9/b3RSDkB5xLiy4QzbX3T0Aw61rbH1CahgBBuR uHGxD5IVaENFxujEI50kNZMa4M546fERlVcPXVLx0073TNTIByYun/g+RHhX1WEDPk90 nLVTJFCuIlptJdGLVxMiS/3WV+WEeYk/uPnJy7GYNSE5TcqY5Sk+XRfP9o7wxQhjTuBd OfxdrSK1xj7iSzi0tqotyg0P0tyJIhgxoopV77fateMyHS2NoNRk3u2YMgfEUz9jt+Mx I7oNOyQ+dlAawprLARe5BTTjR91BKrEJGHW7LfKtefXB0VFKSsrdcDKI81gtPbkU0jfv Jz9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ttUciq1R4DLXwSrCKOG8sMg2/ZhVL4qipuIgKqQy2hE=; b=imn0KI5TKIqUZujrVG0Ex/aKwqShuf23cCQUVCizplDhmc6o2tXYrNVZWBc/Y5qT28 hq1nHjzLqphmgntCKjKfxFMsFnWUD86t9y8+43kg106Iywy5GJzNcWG9Fafx01kgp4QM tNG9xCCZo7yrMpkyk+nU1FDESBNo+Wl7LJuiUWv6uAVzbqnVIj9zR6/mxu+4VV1H3i72 oIfE2XhxyAh59kxjivjN6+bRO15osfJ4JL4LVR/5BwR6dyD68YZO+aY6Efnh05TqlJV/ Iy+2ztHKm70m1PBMLg9qBMwZkBcL58kPzXozgOQcvoQzABmIJi940ixNZGvud/FMD6fW Yn9Q== X-Gm-Message-State: AOAM530SJA9wUMA3ayETdFWh1MX/hqs9P3ijwYUpMFqDRinj67tKYBoj 2jLQ7XB90cTbO2tzsQ1mdJoIMMvgdM3n7Q== X-Received: by 2002:a05:6638:168e:: with SMTP id f14mr67991477jat.64.1594303139999; Thu, 09 Jul 2020 06:58:59 -0700 (PDT) Received: from [192.168.1.58] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id a1sm1884363ilq.50.2020.07.09.06.58.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 06:58:59 -0700 (PDT) Subject: Re: remove dead bdi congestion leftovers To: Christoph Hellwig Cc: Tejun Heo , dm-devel@redhat.com, cgroups@vger.kernel.org, linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20200701090622.3354860-1-hch@lst.de> <20200709053233.GA3243@lst.de> From: Jens Axboe Message-ID: <82e2785d-2091-1986-0014-3b7cea7cd0d8@kernel.dk> Date: Thu, 9 Jul 2020 07:58:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200709053233.GA3243@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/8/20 11:32 PM, Christoph Hellwig wrote: > On Wed, Jul 08, 2020 at 05:14:29PM -0600, Jens Axboe wrote: >> On 7/1/20 3:06 AM, Christoph Hellwig wrote: >>> Hi Jens, >>> >>> we have a lot of bdi congestion related code that is left around without >>> any use. This series removes it in preparation of sorting out the bdi >>> lifetime rules properly. >> >> Please run series like this through a full compilation, for both this one >> and the previous series I had to fix up issues like this: >> >> drivers/md/bcache/request.c: In function ‘bch_cached_dev_request_init’: >> drivers/md/bcache/request.c:1233:18: warning: unused variable ‘g’ [-Wunused-variable] >> 1233 | struct gendisk *g = dc->disk.disk; >> | ^ >> drivers/md/bcache/request.c: In function ‘bch_flash_dev_request_init’: >> drivers/md/bcache/request.c:1320:18: warning: unused variable ‘g’ [-Wunused-variable] >> 1320 | struct gendisk *g = d->disk; >> | ^ >> >> Did the same here, applied it. > > And just like the previous one I did, and the compiler did not complain. > There must be something about certain gcc versions not warning about > variables that are initialized but not otherwise used. Are you using gcc-10? It sucks for that. gcc-9 seems to reliably hit these cases for me, not sure why gcc-10 doesn't. And the ones quoted above are about as trivial as they can get. -- Jens Axboe