Skip to content

Commit

Permalink
NVMe: Make admin timeout a module parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Busch <keith.busch@intel.com>
[made admin_timeout static]
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Keith Busch authored and Matthew Wilcox committed Jun 4, 2014
1 parent 61e4ce0 commit 9d43cf6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/block/nvme-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@

#include <trace/events/block.h>

#define NVME_Q_DEPTH 1024
#define NVME_Q_DEPTH 1024
#define SQ_SIZE(depth) (depth * sizeof(struct nvme_command))
#define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion))
#define ADMIN_TIMEOUT (60 * HZ)
#define IOD_TIMEOUT (retry_time * HZ)
#define ADMIN_TIMEOUT (admin_timeout * HZ)
#define IOD_TIMEOUT (retry_time * HZ)

static unsigned char admin_timeout = 60;
module_param(admin_timeout, byte, 0644);
MODULE_PARM_DESC(admin_timeout, "timeout in seconds for admin commands");

unsigned char io_timeout = 30;
module_param(io_timeout, byte, 0644);
Expand Down

0 comments on commit 9d43cf6

Please sign in to comment.