summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2011-03-16 16:29:24 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2011-11-04 15:53:00 -0400
commit19e899b2f9f89f4a290dd5c9c24d15987a18ab21 (patch)
tree1a402b9452c3b9d45f6cf73a616ec925d8cfcfbd /drivers/block
parentfa92282149842645931580225647238428374758 (diff)
downloadblackbird-op-linux-19e899b2f9f89f4a290dd5c9c24d15987a18ab21.tar.gz
blackbird-op-linux-19e899b2f9f89f4a290dd5c9c24d15987a18ab21.zip
NVMe: Remove outdated comments
The head can never overrun the tail since we won't allocate enough command IDs to let that happen. The status codes are in sync with the spec. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/nvme.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index 740a9c1b81aa..d4f95eb51dc1 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -245,7 +245,6 @@ static int nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd)
{
unsigned long flags;
u16 tail;
- /* XXX: Need to check tail isn't going to overrun head */
spin_lock_irqsave(&nvmeq->q_lock, flags);
tail = nvmeq->sq_tail;
memcpy(&nvmeq->sq_cmds[tail], cmd, sizeof(*cmd));
OpenPOWER on IntegriCloud