Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp411035ybb; Fri, 10 Apr 2020 02:35:41 -0700 (PDT) X-Google-Smtp-Source: APiQypI9gmcwsZi5aMuY+15HRLElA1XnXhUvHFISXe/wMmY9FbxwQUQuHMDCJtj7o0slGGPSPF4l X-Received: by 2002:ac8:46d8:: with SMTP id h24mr577478qto.352.1586511341225; Fri, 10 Apr 2020 02:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586511341; cv=none; d=google.com; s=arc-20160816; b=vZyQgdEZWyXJDqbqtZYqqfMfpIEWW/yg5UAAKdwpuWAHK45Q7lx6PigjkZ+7h2vz0Z DY25+76v04n0Wrq4MY2/DILDDPNpNuB24E0hqW4LHaCojtFT6P8B6MPX8YkoqYkW8oPC mTXMjSNoarGBRp52gLSov0kXXeJWXKiNLejF6JyXvuBokRuGlaZhbyztpchMyh2+A9hQ aCM4KdCPgjhms7bpAIGbLEqx2UyANhEc/2oQnkMpa40qjaxSg6m8CK8QkKN+jRAz6HsH pMbbAu/fW8sWYeIF3VktzLnTNIIH6FuGjKtelrReApWxslOs/XWGQoMhetgmi2cZFUQw EvIw== 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=LwlJWbYYpTRyf2C3FBsux2vaxIVxtN5C7dXXe2fmI34=; b=hlP1pToRJ9lzWLJIOGfghahnuROKjQ2gaYQWjhQNjzN2gJV1cnfTxhq1Oj8GR6xg6O Jf7eV9ll90pdE1oDgzmlE8gi71jwFWAo2ZivLC72VwUzXq8sLPL9XRovcPsakj0l0DKi 57ko6gTf3FOW9WYEAxjjY01lT0t0l3tsyXlzEt4kClhoQYvWCbLsC+dfeCy/GAaNihgv 1UJT5qhH8R90AB3o/scua4ncpqwmD6BGXSsKqSKgYNzDpU/6Jik05CTkGGFChLBSzlNJ 24EmPpvO6CXyD89MMTiL6AdWwa//rVZ9DIW3F8lH0hL0DjTXJ9sQPbWV/PBDL3bP3k9+ Iujg== 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 o17si834793qtj.142.2020.04.10.02.35.26; Fri, 10 Apr 2020 02:35:41 -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 S1726234AbgDJJc5 (ORCPT + 99 others); Fri, 10 Apr 2020 05:32:57 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:34476 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbgDJJc4 (ORCPT ); Fri, 10 Apr 2020 05:32:56 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 03A9WrBG014543; Fri, 10 Apr 2020 11:32:53 +0200 Date: Fri, 10 Apr 2020 11:32:53 +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: <20200410093253.GF14199@1wt.eu> References: <20200331094054.24441-1-w@1wt.eu> <20200331094054.24441-23-w@1wt.eu> <20200410084516.GD14199@1wt.eu> <0bfa0ee0-e2f5-ff9e-b407-bb81d620df20@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0bfa0ee0-e2f5-ff9e-b407-bb81d620df20@linux.com> 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:48:21AM +0300, Denis Efremov wrote: > On 4/10/20 11:45 AM, Willy Tarreau wrote: > > Ah thanks, I missed these ones! Do you want me to respin this patch ? > > I think you can resend only this patch, or send an additional one 24/23. OK, now done as 24/23. Apparently we can now get rid of the code dealing with drive==-1 in lock_fdc()/set_fdc() etc. It's only used by user_reset_fdc() and the last call place is in floppy_resume() which even forgets to set the fdc number, so it only resets the current FDC, as many times as there are FDCs in the system. I'm going to fix this one and see make sure we drop this special case of -1. Willy