Re: [PATCH v4 3/3] scsi: ufs-bsg: Allow reading descriptors

From: Evan Green
Date: Mon Jan 28 2019 - 13:43:09 EST


On Sat, Jan 26, 2019 at 11:08 PM Avri Altman <avri.altman@xxxxxxx> wrote:
>
> Add this functionality, placing the descriptor being read in the actual
> data buffer in the bio.
>
> That is, for both read and write descriptors query upiu, we are using
> the job's request_payload. This in turn, is mapped back in user land to
> the applicable sg_io_v4 xferp: dout_xferp for write descriptor,
> and din_xferp for read descriptor.
>
> Signed-off-by: Avri Altman <avri.altman@xxxxxxx>

Reviewed-by: Evan Green <evgreen@xxxxxxxxxxxx>