RE: [PATCH 1/4] scsi: megaraid_sas: use private counter for tracking inflight per-LUN commands

Kashyap Desai
2019-11-26T03:13:04Z

> > drivers/scsi/megaraid/megaraid_sas.h | 1 +
> > drivers/scsi/megaraid/megaraid_sas_base.c | 15 +++++++++++++--
> > drivers/scsi/megaraid/megaraid_sas_fusion.c | 13 +++++++++----
> > 3 files changed, 23 insertions(+), 6 deletions(-)
> >
> Reviewed-by: Hannes Reinecke <hare@suse.de>

Ming - Sorry for delay. I will update this Patch. We prefer driver to
avoid counter for per sdev if possible. We are currently testing driver
using below changes.

inline unsigned long sdev_nr_inflight_request(struct request_queue *q) {
struct blk_mq_hw_ctx *hctx = q->queue_hw_ctx[0]

return atomic_read(&hctx->nr_active);
}

>
> Cheers,
>
> Hannes
> --
> Dr. Hannes Reinecke Teamlead Storage & Networking
> hare@suse.de +49 911 74053 688
> SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB
> 247165 (AG München), GF: Felix Imendörffer