mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
NVMe: Renumber the special context values
If POISON_POINTER_DELTA isn't defined, ensure they're in page 0 which should never be mapped. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
This commit is contained in:
parent
9294bbed78
commit
d2d8703481
1 changed files with 3 additions and 3 deletions
|
@ -184,9 +184,9 @@ enum {
|
|||
};
|
||||
|
||||
#define CMD_CTX_BASE (POISON_POINTER_DELTA + sync_completion_id)
|
||||
#define CMD_CTX_CANCELLED (0x2008 + CMD_CTX_BASE)
|
||||
#define CMD_CTX_COMPLETED (0x2010 + CMD_CTX_BASE)
|
||||
#define CMD_CTX_INVALID (0x2014 + CMD_CTX_BASE)
|
||||
#define CMD_CTX_CANCELLED (0x30C + CMD_CTX_BASE)
|
||||
#define CMD_CTX_COMPLETED (0x310 + CMD_CTX_BASE)
|
||||
#define CMD_CTX_INVALID (0x314 + CMD_CTX_BASE)
|
||||
|
||||
static unsigned long free_cmdid(struct nvme_queue *nvmeq, int cmdid)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue