Article View: linux.kernel.netdev
Article #3670Re: [PATCH] USB: Documentation: Update description of completion callback context
From: Alan Stern
Date: Thu, 15 Oct 2026 18:35
Date: Thu, 15 Oct 2026 18:35
29 lines
10089 bytes
10089 bytes
On Thu, Oct 15, 2026 at 08:26:43PM +0200, Sebastian Andrzej Siewior wrote: > On 2026-10-15 12:00:46 [-0400], Alan Stern wrote: > > The existing kerneldoc documentation for URB completion callbacks is > > incorrect about the context in which the callbacks occur; it is not > > always in_interrupt. State explicitly that a callback may occur in > > any context with no guarantees, and likewise for the status of > > CPU-local interrupts. > > > > Documentation update only; no code changes. > > > > Signed-off-by: Alan Stern <stern@rowland.harvard.edu> > > Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> > > usb_hcd_giveback_urb() kernel doc says: > > | * Context: atomic. The completion callback is invoked either in a work queue > | * (BH) context or in the caller's context, depending on whether the HCD_BH > | * flag is set in the @hcd structure, except that URBs submitted to the > | * root hub always complete in BH context. > > Do you think this deserves an update? I think that's okay as is. It describes the current implementation pretty well, even though it doesn't mention the lack of guarantees. If you feel it should be changed, let me know. Alan Stern
Technical Details
Message-ID:
<7494e770-518f-4866-87e2-5a525af3b82e@rowland.harvard.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346869-linux-kernel-netdev=dewy.ruReferences:
<2026100910-petition-embattled-94cb@gregkh> <20261012194902.aEq58Q6b@linutronix.de> <8545800a-a37f-482a-9b06-cbdd70312b7a@rowland.harvard.edu> <20261012212527.5sFqlGYu@linutronix.de> <41af30de-4725-4913-9ad8-54d1dea2d4b8@rowland.harvard.edu> <20261014191141.GxlJhR1e@linutronix.de> <89da3b1f-60e5-4f18-9592-3d6d7175c437@rowland.harvard.edu> <20261014220403.R38Gf0pW@linutronix.de> <de582feb-a0aa-4fc8-9818-890014de32a9@rowland.harvard.edu> <20261015182643.MIjjSTAr@linutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346869-linux-kernel-netdev=dewy.ru
From: stern@rowland.harvard.edu (Alan Stern)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] USB: Documentation: Update description of completion
callback context
Date: Thu, 15 Oct 2026 14:35:56 -0400
Organization: Usenet Network
Message-ID: <7494e770-518f-4866-87e2-5a525af3b82e@rowland.harvard.edu>
References: <2026100910-petition-embattled-94cb@gregkh>
<20261012194902.aEq58Q6b@linutronix.de>
<8545800a-a37f-482a-9b06-cbdd70312b7a@rowland.harvard.edu>
<20261012212527.5sFqlGYu@linutronix.de>
<41af30de-4725-4913-9ad8-54d1dea2d4b8@rowland.harvard.edu>
<20261014191141.GxlJhR1e@linutronix.de>
<89da3b1f-60e5-4f18-9592-3d6d7175c437@rowland.harvard.edu>
<20261014220403.R38Gf0pW@linutronix.de>
<de582feb-a0aa-4fc8-9818-890014de32a9@rowland.harvard.edu>
<20261015182643.MIjjSTAr@linutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2595750"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kBg14GMc4Ar1Lu0JI+yH25maE9s= sha256:Yncn7OSphE1fgX3f3fINjkcXrNP3vdOSxqkOngwuCVM=
sha1:z9CQc8yQALPICTJWdwLgn5RsQys= sha256:CHFWV/mWsysgdky8mc/YtUHbRjwfQvbYPgGMz1/3Wfw=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id ADD4711038E; Thu, 15 Oct 2026 21:48:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.35
X-Spam-Status: No, score=0.35 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=rowland.harvard.edu
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 6TO5CuO1yStl;
Thu, 15 Oct 2026 21:48:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346869-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 60329110365; Thu, 15 Oct 2026 21:47:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id 9B157C5362; Thu, 15 Oct 2026 18:36:43 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id AB67F463B66;
Thu, 15 Oct 2026 18:36:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=rowland.harvard.edu header.i=@rowland.harvard.edu header.b="qYPQjXOH"
X-Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6167456E1F
for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 18:36:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.180
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792089368; cv=none; b=XkAuqiR0Mc18vxgui08Xkx9pVBqc1mMMNnbWJ2sNOZCt2f1tALNhBYmsvLnwcImRQdHU7xlvfwVad3SQQB7NTb201ujrNgycoJCMpuQd5CFRP3o8WpabuEXRuACLGlg5oCG9xBpyJywbGqB6h3VBNGtIe87nc2gdhnYcC/QgRe4=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792089368; c=relaxed/simple;
bh=TLr1LucY4VL4yVUlVTB823ltLyltwTY+iKWipUNEIeI=;
h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To; b=VnSwsC2UeeaR+O38blI/wch9tkrGli/PSzDzLWdNtpYKrdlIZqWzgv2jhMNdp9Vju+hYn1VsR/mo0ErwaOt3yrcai7ZRToL2NQ/lubTKeXj9K3JlSLTqU1fmmc0sNSlqCWdP+nSNghJf344jJJNEK0t1G8VHHKdAwfO/uC92RjI=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rowland.harvard.edu; spf=fail smtp.mailfrom=g.harvard.edu; dkim=pass (2048-bit key) header.d=rowland.harvard.edu header.i=@rowland.harvard.edu header.b=qYPQjXOH; arc=none smtp.client-ip=209.85.160.180
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rowland.harvard.edu
X-Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=g.harvard.edu
X-Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-5339733feb9so50312921cf.0
for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 11:36:01 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=rowland.harvard.edu; s=google; t=1792089360; x=1792694160; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=gGaEJMGgzicXp76y7CRrNxXTeHLUaqluIVRvG1wuFn8=;
b=qYPQjXOHuQB2vs2NHK4FzYC1bR9UJWakETapKJVVZTfWqLNj+2se28Xl6ZfvK6+3ik
MN6cJOzaFA4SRGAcbgOXL8CivmqCkk4C0oeINrNAUlXL82sLF0dYdvgx6dD0FW6+WYIe
n9E4Bo7CS2EhBtRdcBPCPiu8pwtoL168ofHstZDftYvARmK7crKH7C+AhXqd6z6n/Xd/
dVj5E776XWZX59sGqjqkNxxNrFfaMI4GCxQ4E/3OsGsZXNpVhnVD1rv4Rjz+2/JLhTZ9
hn5FuElae3cTBETRxwalr6FNHWoYDx1EWF6Jm5umevwGTyYykjwm+PEiNhHEIFb5jaSX
ZCQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792089360; x=1792694160;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=gGaEJMGgzicXp76y7CRrNxXTeHLUaqluIVRvG1wuFn8=;
b=RM68vmVA2yADDz2Dwnt2ClinPtxzqCnxLZbLYAbkF/wXSR0rH7rXnuncix/3FqRFau
rllr+gmLm5x0UuZw6KWlR+ZBuEb/ETKGQQe7yndBHyBFkfnWfZZ3KwvnPTByCaDCaW0S
2e5VOau4cy9diuXxSb9DGZmPYntQKaTTIhdt3bXFARWs371sxwUBMsm7jdKU+fkfVjWa
KrlKL8VEeLUYGSucWZgCm+WPLgistoMWV5Hhitv2hup4wWdu69oHS2hdf9sy6BRTswkU
hIzLqhBKuVmr4iqe6neTY9LUZz6mrirSHPz64kVKy//ytrjVyGlbWrEXpXtHB/qa9jwW
DEhg==
X-Forwarded-Encrypted: i=1; AKwUvBxh2EOnaLIPbEa0BBvJClctddZfRkRxr8Huc1snwmxTH1RdAmuyXOQ2BlMZXHIi+cZqWXGzU2E=@vger.kernel.org
X-Gm-Message-State: AFq9FYInjKP0fpvPSpmBOi2NzjNEtpGDmo9dptmEseejDrrkSMBQtksR
pDOJ/kf4jWVlReqp9+yW2ji1406E8wXpJIpPTdxC6QUvDWfc0wJKChbfQpdoTdTicg==
X-Gm-Gg: AYBFou2ackYAppJztWFg3kut/8RvsrtHpvdO1Kaldnv9r7CHvfIaCVyqNMxSjERKvE1
iKRXrGJbhzjVuFwKA5IpOnw3QSLcX1/ce1YA6oor6Mm7jFee2xQkyK+6+9QFoS368UYvHsc1EPI
l+UWzH+qspEPbcPO0WRWJo6R5/Jx6KMv5u/q2UNEXTSTXh5m1arb3WLHbpdHPJ4mTvGejqeQDHc
9/n/nd+ErCZLyBVkY/8mhWtJ/BULtYwR31LiYslM5Wk8IY0kiPgUJu81Uvz/usZvBjPhjwa7nLt
pAYEJqa7xOlBGililyYOokO4VXV6wODMzyQkcul9QcuBLQHnIjeK7BtAHR/s1xWf65+PB3oIlDX
jf1PP6slJym3wc7qDdbiNoofydwBkbP0uaJ3cF1c9Ea2IE2PcSEKCwy1P/LiLAXS5prz8GKqdd8
+AwWP4V8uwMYUjThSw0CKMINOtzDP14x0/Xf3f4Wx8Q1a2lst9XoSbN0p881BYzo6C1xOGsSuTd
SsZBz1qGbMPZBpGM0sLaGS9gNKdBA1T4J7qwRqgnA==
X-Received: by 2002:a05:622a:90b:b0:535:85be:da8b with SMTP id d75a77b69052e-5359fe01121mr316645821cf.61.1792089360229;
Thu, 15 Oct 2026 11:36:00 -0700 (PDT)
X-Received: from rowland.harvard.edu ([2607:fb60:1011:2006:2008:aeb7:73d7:d8ff])
by smtp.gmail.com with ESMTPSA id d75a77b69052e-5362a9bbad2sm192231cf.18.2026.10.15.11.35.58
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 15 Oct 2026 11:35:59 -0700 (PDT)
X-Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jakub Kicinski <kuba@kernel.org>,
Γmer Mete Kaya <omermetekaya0@gmail.com>,
oneukum@suse.com, netdev@vger.kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
david.laight.linux@gmail.com,
syzbot+04cd90bb99c6ef81a65d@syzkaller.appspotmail.com
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261015182643.MIjjSTAr@linutronix.de>