mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
scsi: smartpqi: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
Prepare for removal of the request pointer by using scsi_cmd_to_rq() instead. This patch does not change any functionality. Link: https://lore.kernel.org/r/20210809230355.8186-43-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
a6e76e6f2c
commit
12db0f9347
@ -5568,7 +5568,7 @@ static inline u16 pqi_get_hw_queue(struct pqi_ctrl_info *ctrl_info,
|
||||
{
|
||||
u16 hw_queue;
|
||||
|
||||
hw_queue = blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(scmd->request));
|
||||
hw_queue = blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(scsi_cmd_to_rq(scmd)));
|
||||
if (hw_queue > ctrl_info->max_hw_queue_index)
|
||||
hw_queue = 0;
|
||||
|
||||
@ -5577,7 +5577,7 @@ static inline u16 pqi_get_hw_queue(struct pqi_ctrl_info *ctrl_info,
|
||||
|
||||
static inline bool pqi_is_bypass_eligible_request(struct scsi_cmnd *scmd)
|
||||
{
|
||||
if (blk_rq_is_passthrough(scmd->request))
|
||||
if (blk_rq_is_passthrough(scsi_cmd_to_rq(scmd)))
|
||||
return false;
|
||||
|
||||
return scmd->SCp.this_residual == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user