From: "Martin K. Petersen" <mkp@kernel.org>
To: Yingjie Wang <x-professor@outlook.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"Martin K . Petersen" <mkp@kernel.org>,
"James E . J . Bottomley"
<James.Bottomley@HansenPartnership.com>,
Bart Van Assche <bvanassche@acm.org>,
Jens Axboe <axboe@kernel.dk>,
Yang Xiuwei <yangxiuwei@kylinos.cn>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/2] scsi: bsg: report data copyback failures
Date: Fri, 30 Oct 2026 21:08:45 -0400 [thread overview]
Message-ID: <yq1mrru3cdt.fsf@mail.kernel.org> (raw)
In-Reply-To: <cover.1792772194.git.x-professor@outlook.com>
Yingjie,
> The synchronous and io_uring SCSI BSG completion paths discard the
> return value from blk_rq_unmap_user(). For data-in commands that use a
> bounce buffer, unmapping copies the completed data back to userspace.
> A failure during that copyback is then lost, so SG_IO can return
> success and io_uring can post a CQE with res == 0 despite the copyback
> failure.
Applied to 7.4/scsi-staging, thanks!
--
Martin K. Petersen
prev parent reply other threads:[~2026-10-31 1:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 16:23 [PATCH v2 0/2] scsi: bsg: report data copyback failures Yingjie Wang
2026-10-23 16:23 ` [PATCH v2 1/2] scsi: bsg: report synchronous " Yingjie Wang
2026-10-23 16:23 ` [PATCH v2 2/2] scsi: bsg: report io_uring " Yingjie Wang
2026-10-26 1:06 ` [PATCH v2 0/2] scsi: bsg: report " Yang Xiuwei
2026-10-26 17:47 ` Bart Van Assche
2026-10-31 1:08 ` Martin K. Petersen [this message]
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=yq1mrru3cdt.fsf@mail.kernel.org \
--to=mkp@kernel.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=x-professor@outlook.com \
--cc=yangxiuwei@kylinos.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.