projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8741ee4
)
NVMe: Fix I/O cancellation status on big-endian machines
author
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Tue, 16 Apr 2013 19:18:30 +0000
(15:18 -0400)
committer
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Tue, 16 Apr 2013 19:18:30 +0000
(15:18 -0400)
The sparse bitwise checks pointed out that I needed to shift the status
before changing its endianness, not after.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c
patch
|
blob
|
history
diff --git
a/drivers/block/nvme-core.c
b/drivers/block/nvme-core.c
index 357c961151a167fdda294af167a72d030b6953ae..a3c7d504d5e22d96a0f2c871e1dba07d9a12b925 100644
(file)
--- a/
drivers/block/nvme-core.c
+++ b/
drivers/block/nvme-core.c
@@
-875,7
+875,7
@@
static void nvme_cancel_ios(struct nvme_queue *nvmeq, bool timeout)
void *ctx;
nvme_completion_fn fn;
static struct nvme_completion cqe = {
- .status = cpu_to_le16(NVME_SC_ABORT_REQ
) << 1
,
+ .status = cpu_to_le16(NVME_SC_ABORT_REQ
<< 1)
,
};
if (timeout && !time_after(now, info[cmdid].timeout))