Re: [PATCH v2 0/2] scsi: bsg: report data copyback failures
From: Martin K. Petersen
Date: Fri Oct 30 2026 - 21:08:56 EST
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