Skip to content

Commit 2fd4167

Browse files
Jon DerrickChristoph Hellwig
authored andcommitted
nvme: fabrics commands should use the fctype field for data direction
Fabrics commands with opcode 0x7F use the fctype field to indicate data direction. Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> Reviewed-by: Sagi Grimberg <sai@grmberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de> Fixes: eb793e2 ("nvme.h: add NVMe over Fabrics definitions")
1 parent 6484f5d commit 2fd4167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/nvme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ static inline bool nvme_is_write(struct nvme_command *cmd)
10061006
* Why can't we simply have a Fabrics In and Fabrics out command?
10071007
*/
10081008
if (unlikely(cmd->common.opcode == nvme_fabrics_command))
1009-
return cmd->fabrics.opcode & 1;
1009+
return cmd->fabrics.fctype & 1;
10101010
return cmd->common.opcode & 1;
10111011
}
10121012

0 commit comments

Comments
 (0)