Re: [PATCH v1 1/3] scsi: ufs: Let UPIU completion trace print RSP UPIU

Bart Van Assche
2021-05-24T01:24:21Z

On 5/23/21 2:14 PM, Bean Huo wrote:
> + rq_rsp = (struct utp_upiu_req *)hba->lrb[tag].ucd_rsp_ptr;

So a pointer to a response (hba->lrb[tag].ucd_rsp_ptr) is cast to a
pointer to a request (struct utp_upiu_req *)? That seems really odd to
me. Please explain.

Bart.