core.c (ad70062cdb4002c74db4fbed4e2b34daffccacc2) core.c (3d030e41d96f46c14faf79f19c3cf1b9961815c8)
1/*
2 * NVM Express device driver
3 * Copyright (c) 2011-2014, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 15 unchanged lines hidden (view full) ---

24#include <linux/types.h>
25#include <linux/pr.h>
26#include <linux/ptrace.h>
27#include <linux/nvme_ioctl.h>
28#include <linux/t10-pi.h>
29#include <linux/pm_qos.h>
30#include <asm/unaligned.h>
31
1/*
2 * NVM Express device driver
3 * Copyright (c) 2011-2014, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 15 unchanged lines hidden (view full) ---

24#include <linux/types.h>
25#include <linux/pr.h>
26#include <linux/ptrace.h>
27#include <linux/nvme_ioctl.h>
28#include <linux/t10-pi.h>
29#include <linux/pm_qos.h>
30#include <asm/unaligned.h>
31
32#define CREATE_TRACE_POINTS
33#include "trace.h"
34
32#include "nvme.h"
33#include "fabrics.h"
34
35#define NVME_MINORS (1U << MINORBITS)
36
37unsigned int admin_timeout = 60;
38module_param(admin_timeout, uint, 0644);
39MODULE_PARM_DESC(admin_timeout, "timeout in seconds for admin commands");

--- 583 unchanged lines hidden (view full) ---

623 ret = nvme_setup_rw(ns, req, cmd);
624 break;
625 default:
626 WARN_ON_ONCE(1);
627 return BLK_STS_IOERR;
628 }
629
630 cmd->common.command_id = req->tag;
35#include "nvme.h"
36#include "fabrics.h"
37
38#define NVME_MINORS (1U << MINORBITS)
39
40unsigned int admin_timeout = 60;
41module_param(admin_timeout, uint, 0644);
42MODULE_PARM_DESC(admin_timeout, "timeout in seconds for admin commands");

--- 583 unchanged lines hidden (view full) ---

626 ret = nvme_setup_rw(ns, req, cmd);
627 break;
628 default:
629 WARN_ON_ONCE(1);
630 return BLK_STS_IOERR;
631 }
632
633 cmd->common.command_id = req->tag;
634 if (ns)
635 trace_nvme_setup_nvm_cmd(req->q->id, cmd);
636 else
637 trace_nvme_setup_admin_cmd(cmd);
631 return ret;
632}
633EXPORT_SYMBOL_GPL(nvme_setup_cmd);
634
635/*
636 * Returns 0 on success. If the result is negative, it's a Linux error code;
637 * if the result is positive, it's an NVM Express status code
638 */

--- 2970 unchanged lines hidden ---
638 return ret;
639}
640EXPORT_SYMBOL_GPL(nvme_setup_cmd);
641
642/*
643 * Returns 0 on success. If the result is negative, it's a Linux error code;
644 * if the result is positive, it's an NVM Express status code
645 */

--- 2970 unchanged lines hidden ---