Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2167847ybm; Sun, 31 May 2020 10:50:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbnGsfR5YZsQEtKDND6cVuyvNsF5ws9OONkCJm74ACbfbOwlwkw9+4aHWhaZDjWsmEcsBf X-Received: by 2002:a05:6402:2c3:: with SMTP id b3mr18689902edx.66.1590947405416; Sun, 31 May 2020 10:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590947405; cv=none; d=google.com; s=arc-20160816; b=HB8HUarVfjyL5EHUBqpiplZ2Z57pBMG/4UrAAW95ViIuaGRgdkvdBWUwwjR9ulIL4B k6y5lN9fGUnXulBzZ6hKUoktTRmEb6bBbEeVgworwpSQO0HHeBQc5eYISnHCtZ21dwuB YQsPWElzMi80dwkxzvXCg/Ac6qN7bSo4pwSWm+ua0vvN6OY4edQ/rVDM7dTLqWpHmS5C 8YKUIqbnOrD3fbmb4hqceaN++vUJtjlU3CTgcFOHS0Ec2JOkc+2sQswXQDnGEOdAcVpa u+SXgtVo9u1PSj1NJhXFhj3RbNG4kyIgIrs56RB+5Dctn4GoSzQ5+urRswKbTVixducQ qA2w== 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=2RMIV7m/Lpx/3Cc5jgcmhOCjHtYKoVJK72f4lQdlYTE=; b=Cqxn8G+ix+yoXLXcib89jWcC7fs1EVi1deKNLYQXu41+Zmmnowfvw18oQnJdCgyv3Z pJJrT0wkfyDgosUh6R8NctBoMLUI+0SGtaHiUMOfDAz1GfqGYXoV1nBiplAFQe6AiGGv O1z5tr3DUlp0jxCv+eDe3WflxUA6KnDcxGVmwFs2T1hiPrNB05GJgsytw1ut8vg7A4O5 RQZNKYI/UdDl95UJqiQ11nTvcDCzLZxSdM1RK+hCj7UzGo6/xLd8ZxFOtMkJeTBxdwiJ iYX+H77+p+QxokQUOK7lg6NI9opO0kVs+cWNguRvJkZs6utyg0YbeeMw5NOs7xeHSjBN MdDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qVzRun+G; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l88si4494016edl.376.2020.05.31.10.49.42; Sun, 31 May 2020 10:50:05 -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=@gmail.com header.s=20161025 header.b=qVzRun+G; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728264AbgEaRod (ORCPT + 99 others); Sun, 31 May 2020 13:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbgEaRod (ORCPT ); Sun, 31 May 2020 13:44:33 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD2EC061A0E for ; Sun, 31 May 2020 10:44:32 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id q2so5267720ljm.10 for ; Sun, 31 May 2020 10:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2RMIV7m/Lpx/3Cc5jgcmhOCjHtYKoVJK72f4lQdlYTE=; b=qVzRun+Gv8KCaQjsJR4wIt57gzuhGj6TiqE5gakAl/pLFcwKNrCO4We/EAwcRPGYT5 ZXEa/vsTlJzY7i2PmOOMDPASffsTfz1o8Y2EO5Kj7OYqafl4RMzGr0EZmnALMWaRrrix x4B3BKpYZUUc6SqEwOpMf3fEHCquetz9FN5eyl2igdTs+IpcF9pKXy8whjxOX69WiRMR SbZLl8hnQA+msMxFIcZwORvg/lIZbnM4O4ubIo3V9rAjVsbtuZ/JIUW/LuDqT/YEtDvu A8jwG1CHoC09UJ67a40SwL11xWShTPFFh6KqLQHbEVk7nsmzesIyijcjQDh0Y0KOWuWj KmQw== 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=2RMIV7m/Lpx/3Cc5jgcmhOCjHtYKoVJK72f4lQdlYTE=; b=h0QI+cT38dEZh9oQaSXegS3pqGqZ4IO67qB700l4M2lCxcXSLBlbwgKRTGhJZAY4CF yptxOzhf2G8W8dqqEPgCb2dL8HRP+iXYalS9GVk6jffcejmZm11nADV+qFWbUugvy4IE 56PYicUPPaPvkJM5KyBMAyVbPMLtilrSUv3nv2YqgHOHj5W9/UvnN2yxEWKnnQWA6yzZ P1KvPfDEknUqe7dWSTq94k16G/qpYOExB5BRCoOIbObi/OvGEKqfa7ngrdgfjpeJ8RRd X6DdUGcuTtD8nLMRJ9UWDtSXCIuOGATpzSnFni0N73u9ibw4XIzy/EvfZDhyRPiRNYlL /Umw== X-Gm-Message-State: AOAM5304bRBn5ntTg/iENHANhYKG7BAGI7yKtj1U8rKnR3Jg8xF8gIkf X2Jnk7xd1OO3mZeZ4KhnSPNlga7p X-Received: by 2002:a2e:8782:: with SMTP id n2mr1630941lji.171.1590947070585; Sun, 31 May 2020 10:44:30 -0700 (PDT) Received: from [192.168.0.160] (84.188.smarthome.spb.ru. [80.249.188.84]) by smtp.gmail.com with ESMTPSA id 22sm1610110lju.5.2020.05.31.10.44.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 May 2020 10:44:29 -0700 (PDT) Subject: Re: [PATCH] staging:r8723bs: remove wrappers around skb_clone() To: Joe Perches , Greg Kroah-Hartman Cc: Rasmus Villemoes , Hans de Goede , Miguel Ojeda , Nishka Dasgupta , Lukasz Szczesny , R Veera Kumar , Hariprasad Kelam , YueHaibing , Shobhit Kukreti , Dan Carpenter , Pascal Terjan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20200531160843.39120-1-insafonov@gmail.com> <7bf8612d3708b811e026daec5c7a1486c5954905.camel@perches.com> <8e4df253-e021-6c29-96ab-24eed9b61eb2@gmail.com> <24e0f572511724ea338f8802fde2ad3a359ea8d5.camel@perches.com> From: Ivan Safonov Message-ID: <1803e5d8-2629-adf3-6638-0ad843273a02@gmail.com> Date: Sun, 31 May 2020 20:49:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <24e0f572511724ea338f8802fde2ad3a359ea8d5.camel@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/31/20 8:36 PM, Joe Perches wrote: > On Sun, 2020-05-31 at 20:28 +0300, Ivan Safonov wrote: >> On 5/31/20 7:15 PM, Joe Perches wrote: >>> On Sun, 2020-05-31 at 19:08 +0300, Ivan Safonov wrote: >>>> Wrappers around skb_clone() do not simplify the driver code. >>> [] >>>> -inline struct sk_buff *_rtw_skb_clone(struct sk_buff *skb) >>>> -{ >>>> - return skb_clone(skb, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); >>>> -} >>>> - >>> [] >>>> diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c >>> [] >>>> @@ -110,7 +110,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt >>>> if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)) { >>>> if (bmcast) { >>>> psta = rtw_get_bcmc_stainfo(padapter); >>>> - pskb2 = rtw_skb_clone(pkt); >>>> + pskb2 = skb_clone(pkt, GFP_ATOMIC); >>> >>> Why make every clone allocation GFP_ATOMIC ? >> >> The rtw_os_recv_indicate_pkt() is always called from an interrupt handler. > > It'd be better to indicate you know that in the changelog > as the subject and changelog just shows removing wrappers > and the patch code does not agree with that. Yes, it's right.