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

From: Bart Van Assche
Date: Sun May 23 2021 - 21:24:23 EST


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.