Skip to content

Commit

Permalink
NVMe: Mark CMD_CTX_CANCELLED as being unlikely
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 7547881 commit c427055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static void sync_completion(struct nvme_queue *nvmeq, void *ctx,
struct nvme_completion *cqe)
{
struct sync_cmd_info *cmdinfo = ctx;
if ((unsigned long)cmdinfo == CMD_CTX_CANCELLED)
if (unlikely((unsigned long)cmdinfo == CMD_CTX_CANCELLED))
return;
if (unlikely((unsigned long)cmdinfo == CMD_CTX_COMPLETED)) {
dev_warn(nvmeq->q_dmadev,
Expand Down

0 comments on commit c427055

Please sign in to comment.