Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4125954rdh; Tue, 28 Nov 2023 12:32:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9W+zK2Vx/UVkzgMKjijFbncSfQ3PW4Qp9HbvqL8YmOnNb7hZBvWEiKNY30/DVYrXc6PVv X-Received: by 2002:a17:90b:1e0c:b0:285:b69c:cda3 with SMTP id pg12-20020a17090b1e0c00b00285b69ccda3mr12591595pjb.43.1701203530831; Tue, 28 Nov 2023 12:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701203530; cv=none; d=google.com; s=arc-20160816; b=UEo/UpAREU4ZzrkjsIXR2lwW6+B14UW8TPzxR41QNpHQHzCxVsQ37ZuSuGiSJNMfAt G2U1+kMJQSQA2cOUjJtu+kodxzlBlTKOHTO292X1NYYKKbDkcdxOwbbY96bzpRvZl5+u 7fMXoBXJYDD+4VZ/QDf+Q8B903FjiJaAob4dTysgyKJMIld7UWLkTQ04tHpR6Cju3fX7 fahlww2mOTx8ln4t5dZbvmrR0nzJNOh5Q0TsOP/m5h/FKbs6LLHUgYwEOIjdnkJ7HfJT CYCkvAkizXJO7nmZpLrsN8UVQCypSWHEJN4qQeegHS2z3swdLH+fCKhMRgrovHYrI8Y7 0q8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8XKy/giFFBzRIyzsC6NU3QO7zkRURqbCQ/tW1YwEn6Y=; fh=t27Tib4UCBso065rFoXKl3c2Ol6NuJ4hG35i26bdZQ0=; b=qpdRqD4pj9XzC6F9ddHgYxN9FIs+6vUAap7yMG+GmqUaAP/xDSz3JtIJgD22jq9wy6 fmqJ+YQ5UrYj/Dav2Kzi0++o5mGLPNm/gYt7gDN8LRINU0AcV0X8+yBvG3OEBxXvG6YZ BkLnyyDa0nh3OyE0Zkvt0yzTA1gGR6cvw2LXpdoG+2kxR1UMTxCC2EGDY3iLaoSuAyjy PMIatGFjf2OfJtz+NffjlTmT692vkoargn2vgrT28igwiOPnWgtTQF/J5BoTVXQK5XNP 98bozYY/ukAC9IYZ/PegREWIbp1SBPaLcMsLB4AmkCk9rb0NHWkKKcznHaWqEw5uHtEV RaQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=SiwLo2O0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id sj1-20020a17090b2d8100b00285b8d3830dsi7288020pjb.160.2023.11.28.12.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:32:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=SiwLo2O0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8125980659AB; Tue, 28 Nov 2023 12:32:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344512AbjK1Uby (ORCPT + 99 others); Tue, 28 Nov 2023 15:31:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjK1Ubx (ORCPT ); Tue, 28 Nov 2023 15:31:53 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C111988 for ; Tue, 28 Nov 2023 12:31:59 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7b359dad0e7so10656139f.0 for ; Tue, 28 Nov 2023 12:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1701203519; x=1701808319; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8XKy/giFFBzRIyzsC6NU3QO7zkRURqbCQ/tW1YwEn6Y=; b=SiwLo2O0OhSmKDYpHILB9ohM2R3qBHSzWMgVUb7M2dWwniXNSGgCcmuJcoGePpAOeG S0fFFAjutdIyjJMXXNv6nA+njDrO2oOZpZ2AeUu1tFLc7QqUfMBrMDW58fbvePNvlnnC jXJwF/SOE3oeGUX/e21onWUce0Q/bin7331Ko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701203519; x=1701808319; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8XKy/giFFBzRIyzsC6NU3QO7zkRURqbCQ/tW1YwEn6Y=; b=YeP3PjCd260YJ9X3Zjo68FTdn3zcHpoyGfHh8Fe/BOz4i5LomqAGsi0kjG083ejdz6 upKN1oByATOS/5Dsdjk1qM+fUM2BS9EklGrpps2caU8xhOZbOn/hQNqkpm0e5xwLxl7A EPVAx5BuDHhuCyYm/5ZnU77t8Hbvk8PAqNaqTM10D0Z8FVgirGerSNgpoapgt4LLfk0n Y/Pg+04DY5oi9VTda/F4LEmRGix1MxFMNmN+suj5mkoWsr+941r1i3iSIMR4rLylRXZf 0hm7Qbag4be4KvtYQu/x8DwLoqSaVivA7gedKVif5oarAJ/ALJl1u2+Pg22ew1sy9Cae PKgw== X-Gm-Message-State: AOJu0YwwPR+AkZF+80dil8EyO17QBvwfblWWttfzl8N1XS2Zvsk+2ozD W9RRxbz+QQPAJLhZy/buqwbX2Q== X-Received: by 2002:a05:6602:2e0f:b0:792:6068:dcc8 with SMTP id o15-20020a0566022e0f00b007926068dcc8mr20561718iow.2.1701203519002; Tue, 28 Nov 2023 12:31:59 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id q1-20020a056638238100b004596858b397sm3103355jat.7.2023.11.28.12.31.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 12:31:58 -0800 (PST) Message-ID: Date: Tue, 28 Nov 2023 13:31:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] usbip: Don't submit special requests twice Content-Language: en-US To: Simon Holesch , Valentina Manea , Shuah Khan , Hongren Zheng , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20231128000955.119735-1-simon@holesch.de> From: Shuah Khan In-Reply-To: <20231128000955.119735-1-simon@holesch.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 12:32:08 -0800 (PST) On 11/27/23 17:08, Simon Holesch wrote: > Skip submitting URBs, when identical requests were already sent in > tweak_special_requests(). Instead call the completion handler directly > to return the result of the URB. > Sounds reasonable. What happens when a tweak_* routine does nothing or returns an error. tweak_reset_device_cmd() returns 0 when it can't get the device lock and after calling usb_reset_device(). tweak_set_interface_cmd() and tweak_clear_halt_cmd() return the value the usb_* routine they call. Don't these cases be handled as well? thanks, -- Shuah