Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1118306lqj; Mon, 3 Jun 2024 10:35:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaxBpJE40c4dTeGlBXFCwOpVQj2HoJ/kAa5yDhYmP5G34u4DnaIu5YefOTi+JqGNQF824o4Kr/d79GQvsRtAL/1KyJ6A3QQqqPe2zS5Q== X-Google-Smtp-Source: AGHT+IHXMpW3A/xpjC4du8VOOV+IG/fqcX1InK5pveeeDTXHDeufcer+fav4LJEj5iZLzxyGSI6E X-Received: by 2002:a05:6214:419e:b0:6ad:7a4d:a4ab with SMTP id 6a1803df08f44-6aecd6faa4dmr87210826d6.63.1717436121192; Mon, 03 Jun 2024 10:35:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717436121; cv=pass; d=google.com; s=arc-20160816; b=u7xjMjf0mSPQxTd/a8CHxU0EmY7ZaLGytoAXiI/E7oFlU5yS9bcSXzPsSnNds1XQ78 4SEi2uJqk+V86EZRy7o2UjLqaTDJpgv/cm7nFO6ATh3iYHrVWgreu4PkfbSqjuaVKlkW EHq+ceJ/nA9I4XZAm1zRhxCGTWuVaSLxkGt3iywzTneGaoOyNCZFRCFA8AnNUT0TBbo1 TeN0cZaDpFLcdx9COIuPFMjc82C9YLWAsQrQxqZoE+BVbaomu6UgN5pMs3iR14TeEod9 FQ9Hi4R/m9dhPJbS2qsIJ+tRdwb06jSx6fifNKMC/ThYrr/58CEO/gXpMEcWIyehJm4o xryA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature:dkim-filter; bh=4DfOU8aQl0aDoujS+l1W8I9cPbB9Sd5aNNyJFDGp/QQ=; fh=ppto0+6EhbOtiA0F53eoonS4QTq8QIzo/MRA5L4pdy4=; b=tAFjoRYuLpC8KKsVLOfOuQFY0e6OBKx1hrKE9QCcwevfliAuswheerjk+/tb5G3pYr EeyTK1QB4kWNKs1fLJPdZVW3MJ1rIBggCTVa8FXU3UAHAb1B2pTVoe/mxwiDRkV9xjrr AEpNrB//GkhmnGBRQ4gXBdu7bm7S4q+p/KWDiP6qiFcKEiFV6+ZypIag+Fd/bghkipXT 3bE1USo/6pGprU52glroLBPGLc6XxKha1lg+WIEOPYg/gUi8DbHd6RmfWtPg8W9nTzE5 5WMm4lDLzg6VSpBpYFM3MT7WD2BRBzd8mqsW60YHpkqx5J8W09d69MtcrB9PTS/WptHt Xq/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=arwB9k2c; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-199520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4a733dc2si94329486d6.43.2024.06.03.10.35.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=arwB9k2c; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-199520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E41CD1C218AD for ; Mon, 3 Jun 2024 17:35:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1788137C43; Mon, 3 Jun 2024 17:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="arwB9k2c" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B9841366; Mon, 3 Jun 2024 17:34:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717436098; cv=none; b=FCfTHfEDddyBQEn1WhZnWryYKueBt1KPLCbSY+3BereApdu77pBzVVv3L5aKUkaPr3fKJMD3vRAG3zd7Q5LLW+b2reG/syj4QAVUYt0dpSeiVT1CjjEJNZhQWruUVcdAapozOdsZbudnrk7PsEiue9rH2ggaKjvft+KM0at6uXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717436098; c=relaxed/simple; bh=DKulNpWMB5g4h3LO0UnPAP8vpdAsv+ZuVpLPHeUsdwQ=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=M5XH+hIln6mlA4WGV/JhOO/EonsIduLgZHDrUlZAeQ7PmkPS4batJRkkVZEsNCt64qWewd77f3Nsn0WvmmDYM/IIm/SLCqu9RodrycAo2f5o+S8DJtw/YaN54OgdCj4NXt+ct9P12fTPu41eIuKs77zxP/F7AcOa+AxicHiMpgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=arwB9k2c; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from smtpclient.apple (d66-183-91-182.bchsia.telus.net [66.183.91.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 4684920681D5; Mon, 3 Jun 2024 10:25:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4684920681D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1717435514; bh=4DfOU8aQl0aDoujS+l1W8I9cPbB9Sd5aNNyJFDGp/QQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=arwB9k2cp5qmOpH04JZQJkpaQ68dKr6NHq6/nWjIeKTEglSLJZbHneTkxRo0iYye3 dopPLk66Mp6Cqqtct/3LWOtVyWSXCVY5VMtnmDbdTLbXrzM1H6t1A8KCeQ5Sp+gzGS Acr7rY4qAUIDkO+vSD/92kHIH7AgZovgYBJ1BnFc= Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PATCH 9/9] mmc: Convert from tasklet to BH workqueue From: Allen Pais In-Reply-To: <7e618af0-51a7-4941-a386-0ac68c66d358@microchip.com> Date: Mon, 3 Jun 2024 10:25:02 -0700 Cc: Linux Kernel Mailing List , Tejun Heo , Kees Cook , Vinod Koul , marcan@marcan.st, sven@svenpeter.dev, florian.fainelli@broadcom.com, Ray Jui , Scott Branden , Paul Cercueil , Eugeniy.Paltsev@synopsys.com, manivannan.sadhasivam@linaro.org, Viresh Kumar , Frank.Li@nxp.com, Leo Li , zw@zh-kernel.org, Zhou Wang , haijie1@huawei.com, Shawn Guo , Sascha Hauer , Sean Wang , Matthias Brugger , angelogioacchino.delregno@collabora.com, =?utf-8?Q?Andreas_F=C3=A4rber?= , Logan Gunthorpe , Daniel Mack , Haojian Zhuang , Robert Jarzmik , andersson@kernel.org, konrad.dybcio@linaro.org, Orson Zhai , baolin.wang@linux.alibaba.com, Lyra Zhang , Patrice CHOTARD , Linus Walleij , Chen-Yu Tsai , =?utf-8?Q?Jernej_=C5=A0krabec?= , peter.ujfalusi@gmail.com, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, jassisinghbrar@gmail.com, mchehab@kernel.org, maintainers@bluecherrydvr.com, ulf.hansson@linaro.org, manuel.lauss@gmail.com, mirq-linux@rere.qmqm.pl, jh80.chung@samsung.com, oakad@yahoo.com, hayashi.kunihiko@socionext.com, mhiramat@kernel.org, brucechang@via.com.tw, HaraldWelte@viatech.com, pierre@ossman.eu, duncan.sands@free.fr, stern@rowland.harvard.edu, oneukum@suse.com, openipmi-developer@lists.sourceforge.net, dmaengine@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-mips@vger.kernel.org, imx@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <61F36002-C765-410C-8EF9-203593C269FF@linux.microsoft.com> References: <20240327160314.9982-1-apais@linux.microsoft.com> <20240327160314.9982-10-apais@linux.microsoft.com> <7e618af0-51a7-4941-a386-0ac68c66d358@microchip.com> To: Aubin Constans X-Mailer: Apple Mail (2.3774.600.62) > On Jun 3, 2024, at 5:38=E2=80=AFAM, Aubin Constans = wrote: >=20 > On 27/03/2024 17:03, Allen Pais wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you = know the content is safe >> The only generic interface to execute asynchronously in the BH = context is >> tasklet; however, it's marked deprecated and has some design flaws. = To >> replace tasklets, BH workqueue support was recently added. A BH = workqueue >> behaves similarly to regular workqueues except that the queued work = items >> are executed in the BH context. >> This patch converts drivers/infiniband/* from tasklet to BH = workqueue. >> Based on the work done by Tejun Heo >> Branch: https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git = for-6.10 >> Signed-off-by: Allen Pais >> --- >> drivers/mmc/host/atmel-mci.c | 35 ++++----- > [...] >=20 > For atmel-mci, judging from a few simple tests, performance is = preserved. > E.g. writing to a SD Card on the SAMA5D3-Xplained board: > time dd if=3D/dev/zero of=3D/opt/_del_me bs=3D4k count=3D64k >=20 > Base 6.9.0 : 0.07user 5.05system 0:18.92elapsed 27%CPU > Patched 6.9.0+: 0.12user 4.92system 0:18.76elapsed 26%CPU >=20 > However, please resolve what checkpatch is complaining about: > scripts/checkpatch.pl --strict = PATCH-9-9-mmc-Convert-from-tasklet-to-BH-workqueue.mbox >=20 > WARNING: please, no space before tabs > #72: FILE: drivers/mmc/host/atmel-mci.c:367: > +^Istruct work_struct ^Iwork;$ >=20 > Same as discussions on the USB patch[1] and others in this series, I = am also in favour of "workqueue" or similar in the comments, rather than = just "work". Will send out a new version. Thank you very much for testing and providing your review. - Allen >=20 > Apart from that: > Tested-by: Aubin Constans > Acked-by: Aubin Constans >=20 > Thanks. >=20 > [1]: = https://lore.kernel.org/linux-mmc/CAOMdWSLipPfm3OZTpjZz4uF4M+E_8QAoTeMcKBX= awLnkTQx6Jg@mail.gmail.com/