Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp376776ybb; Fri, 10 Apr 2020 01:47:29 -0700 (PDT) X-Google-Smtp-Source: APiQypK4PNWDlFE3n75Qm4eiefNUQ/eqN6KKUvedKdxNyfEWAA2bmapfrqsisALWXKdxNL9krcVO X-Received: by 2002:a0c:e848:: with SMTP id l8mr4261115qvo.82.1586508449814; Fri, 10 Apr 2020 01:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586508449; cv=none; d=google.com; s=arc-20160816; b=BaO1W7Gkq/5DquPco2V3d7WqPy/Hcqi1tg1wYlghRxuifwbXLAVH0DI9Lrxjtirh3B Qa54w8dNY6c8VP4DXwE2Vr/XVrTBY2UBPyaNkGBhcL25lc41LvWr2Ss9jM8cLmj9GraS H0d3I6/RkiBXRdAKtv6ozWmnZdPzGPNJKkkFJ6lbg+WPnb2dLRHNkmPdoXCK6jYiZVXK ooLERdt2JOvm+egASrapNl+IZzPBVaa8sMZtxwYD3qGJlXnxKRosXtutQ/8MJGXBNn3f +plY/VIB9b+Z7wdlrRJ8XvCBIar0fdFiXNTrOAYys5S44VaN5rSeMKVARXE+CfbtYDNN QrLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nYf1aCzRSkuBS0D7BzkmEDTq7R9VqgaPJMA1bR7zsVQ=; b=P/gO+SXLFcuMAjJfw0MkNVn1tOW8Y2ysUBe0E4i4gv3WxIzpJatCCjuAx5ppEkoE4M XglK0oc3Fq1+ktjzLuXyYUca4YW7lWAX9Hl2Fv6zB/51p1rVXQ/4DBQO+PnkV86oQI+n quiwpQOVsEvrd3eKYx/Ye61vAcYo3jR+LJW0rNatEAEGY+44fKEFpBZ/K4+wTQcWV1pI VCRNHXM0LXaTP0CaNsXjzb77xL01ACbSf/d37OldgPGhsa6g4OTmknLhVfAiyaVMkytm yF9xXSjVA9kK7biQGnVtOunaYoTXNqV/Kojuv32hZ0UYhncdKdyprJUw+kCH0mjA+D0E U0lQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d191si991891qkg.264.2020.04.10.01.47.14; Fri, 10 Apr 2020 01:47:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgDJIpZ (ORCPT + 99 others); Fri, 10 Apr 2020 04:45:25 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:34469 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgDJIpZ (ORCPT ); Fri, 10 Apr 2020 04:45:25 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 03A8jG2v014259; Fri, 10 Apr 2020 10:45:16 +0200 Date: Fri, 10 Apr 2020 10:45:16 +0200 From: Willy Tarreau To: Denis Efremov Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 22/23] floppy: cleanup: do not iterate on current_fdc in DMA grab/release functions Message-ID: <20200410084516.GD14199@1wt.eu> References: <20200331094054.24441-1-w@1wt.eu> <20200331094054.24441-23-w@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 11:35:51AM +0300, Denis Efremov wrote: > I see a couple of similar cycles in do_floppy_init: > > for (i = 0; i < N_FDC; i++) { > current_fdc = i; > memset(&fdc_state[current_fdc], 0, sizeof(*fdc_state)); > fdc_state[current_fdc].dtr = -1; > fdc_state[current_fdc].dor = 0x4; > ... > } > > for (i = 0; i < N_FDC; i++) { > current_fdc = i; > fdc_state[current_fdc].driver_version = FD_DRIVER_VERSION; > ... > } Ah thanks, I missed these ones! Do you want me to respin this patch ? Willy