]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Fix endian-related problems in user I/O submission path
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 16 Apr 2013 19:21:06 +0000 (15:21 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 16 Apr 2013 19:21:06 +0000 (15:21 -0400)
commitbb89ed41e6705f4e6ed2a386073108e7c0f2a20e
tree387be3d96798e7b5c4d35accd3067d4095552387
parent0065afe8bfdbc731082b6527c869ed15560a5493
NVMe: Fix endian-related problems in user I/O submission path

When constructing the command, dsmgmt needs to be treated as a 32-bit
value, not a 16-bit value.  reftag, apptag and appmask all need to be
converted from native-endian to little-endian.  Again, sparse's bitwise
warnings caught this problem.  Thanks to Keith for pointing out the
correct way to fix the reftag.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>
drivers/block/nvme-core.c
include/linux/nvme.h