Re: [PATCH v4 5/7] scsi: pm8001: Use sas_task_find_rq() for tagging

From: Hannes Reinecke
Date: Tue Oct 18 2022 - 08:05:09 EST


On 10/18/22 13:16, John Garry wrote:
The request associated with a scsi command coming from the block layer
has a unique tag, so use that when possible for getting a CCB.

Unfortunately we don't support reserved commands in the SCSI midlayer yet,
so in the interim continue to manage those tags internally (along with
tags for private commands).

Signed-off-by: John Garry <john.garry@xxxxxxxxxx>
Reviewed-by: Jack Wang <jinpu.wang@xxxxxxxxx>
Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>
---
drivers/scsi/pm8001/pm8001_init.c | 12 ++++--------
drivers/scsi/pm8001/pm8001_sas.c | 13 +++++++++----
drivers/scsi/pm8001/pm8001_sas.h | 11 ++++++++---
drivers/scsi/pm8001/pm80xx_hwi.c | 19 +++----------------
4 files changed, 24 insertions(+), 31 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes