From: sashiko-bot@kernel.org
To: "Sarthak Kukreti" <sarthakkukreti@google.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 1/3] usb: uas: complete command on status URB error
Date: Fri, 13 Nov 2026 03:05:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-212120@kernel.org> (raw)
In-Reply-To: <20261113024922.27977-2-sarthakkukreti@google.com>
> When a UAS device is unplugged while hub_wq is frozen during system
> suspend, usb_disconnect() is deferred and sd_sync_cache() issues
> SYNCHRONIZE_CACHE to the disconnected target. If the status URB fails in
> uas_stat_cmplt(), uas_stat_cmplt() logs the error and frees the URB
> without completing the command, leaving SYNCHRONIZE_CACHE pending until
> the 60s SCSI timeout and triggering the 25s DPM watchdog.
>
> Track each command's active sense_urb in uas_cmd_info. When a status URB
> fails in uas_stat_cmplt() while not resetting, complete the command that
> owns the failed status URB (with DID_NO_CONNECT on -ENODEV/-ESHUTDOWN
> and DID_ERROR otherwise), free unsubmitted URBs, and unlink any inflight
> data URBs outside devinfo->lock. Set DID_NO_CONNECT on -ENODEV/-ESHUTDOWN
> and preserve non-DID_OK host bytes in uas_data_cmplt().
>
> Fixes: 115bb1ffa54c ("USB: Add UAS driver")
> Signed-off-by: Sarthak Kukreti <sarthakkukreti@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261113024922.27977-1-sarthakkukreti@google.com?part=1
next prev parent reply other threads:[~2026-11-13 3:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 2:49 [PATCH v2 0/3] usb: uas / scsi: fail inflight and queued commands on dead links Sarthak Kukreti
2026-11-13 2:49 ` [PATCH v2 1/3] usb: uas: complete command on status URB error Sarthak Kukreti
2026-11-13 3:05 ` sashiko-bot [this message]
2026-11-13 2:49 ` [PATCH v2 2/3] usb: uas: fail command submission on fatal USB errors Sarthak Kukreti
2026-11-13 3:09 ` sashiko-bot
2026-11-13 2:49 ` [PATCH v2 3/3] scsi: core: do not retry passthrough requests on disconnected targets Sarthak Kukreti
2026-11-13 2:56 ` sashiko-bot
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=sashiko-outbox-212120@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sarthakkukreti@google.com \
--cc=sashiko-reviews@lists.linux.dev \
/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