[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150405153912.GA28173@lst.de>
Date: Sun, 5 Apr 2015 17:39:12 +0200
From: Christoph Hellwig <hch@....de>
To: Jens Axboe <axboe@...com>
Cc: axboe@...nel.dk, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org, hch@....de
Subject: Re: [PATCH 3/7] scsi: add scsi-mq helpers to retrieve pdu and
check started state
On Fri, Apr 03, 2015 at 09:58:19AM -0600, Jens Axboe wrote:
> +static inline void *scsi_mq_scmd_to_pdu(struct scsi_cmnd *scmd)
> +{
> + return blk_mq_rq_to_pdu(scmd->request) + sizeof(*scmd);
> +}
We've already got scsi_cmd_priv to cover this.
> +static inline bool scsi_mq_scmd_started(struct scsi_cmnd *scmd)
> +{
> + return blk_mq_request_started(scmd->request);
> +}
I don't really think we want to expose this functionality, but more
on that in my reply to the mpt2 patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists