From: Johan Hovold <johan@kernel.org>
To: Shuah Khan <skhan@linuxfoundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bastien Nocera <hadess@hadess.net>,
Valentina Manea <valentina.manea.m@gmail.com>,
Shuah Khan <shuah@kernel.org>, Hongren Zheng <i@zenithal.me>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] USB: usbip: drop redundant device reference
Date: Tue, 10 Mar 2026 09:35:34 +0100 [thread overview]
Message-ID: <aa_X1qNsCGll04zj@hovoldconsulting.com> (raw)
In-Reply-To: <9d727cd2-701e-4c5b-9646-82874f2d0a4a@linuxfoundation.org>
On Mon, Mar 09, 2026 at 02:26:03PM -0600, Shuah Khan wrote:
> On 3/5/26 06:38, Johan Hovold wrote:
> > Driver core holds a reference to the USB device while it is bound to a
> > driver and there is no need to take additional references unless the
> > structure is needed after disconnect.
>
> In this case it is necessary for stub driver to hang on to the reference
> to maintain exported device status.
But the driver does not hold on to the reference taken at probe after
disconnect returns. The stub device itself is even freed at disconnect
and cannot be used to release the reference.
Which exported device status are you referring to here?
Johan
next prev parent reply other threads:[~2026-03-10 8:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 13:38 [PATCH 0/2] USB: drop further redundant device references Johan Hovold
2026-03-05 13:38 ` [PATCH 1/2] USB: apple-mfi-fastcharge: drop redundant device reference Johan Hovold
2026-03-10 14:38 ` Bastien Nocera
2026-03-05 13:38 ` [PATCH 2/2] USB: usbip: " Johan Hovold
2026-03-09 20:26 ` Shuah Khan
2026-03-10 8:35 ` Johan Hovold [this message]
2026-03-10 21:51 ` Shuah Khan
2026-03-11 8:02 ` Johan Hovold
2026-03-23 19:29 ` Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa_X1qNsCGll04zj@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hadess@hadess.net \
--cc=i@zenithal.me \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=valentina.manea.m@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox