File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ struct nvme_dev {
120
120
unsigned max_qid ;
121
121
unsigned io_queues [HCTX_MAX_TYPES ];
122
122
unsigned int num_vecs ;
123
- u16 q_depth ;
123
+ u32 q_depth ;
124
124
int io_sqes ;
125
125
u32 db_stride ;
126
126
void __iomem * bar ;
@@ -157,13 +157,13 @@ struct nvme_dev {
157
157
static int io_queue_depth_set (const char * val , const struct kernel_param * kp )
158
158
{
159
159
int ret ;
160
- u16 n ;
160
+ u32 n ;
161
161
162
- ret = kstrtou16 (val , 10 , & n );
162
+ ret = kstrtou32 (val , 10 , & n );
163
163
if (ret != 0 || n < 2 )
164
164
return - EINVAL ;
165
165
166
- return param_set_ushort (val , kp );
166
+ return param_set_uint (val , kp );
167
167
}
168
168
169
169
static inline unsigned int sq_idx (unsigned int qid , u32 stride )
@@ -195,7 +195,7 @@ struct nvme_queue {
195
195
dma_addr_t sq_dma_addr ;
196
196
dma_addr_t cq_dma_addr ;
197
197
u32 __iomem * q_db ;
198
- u16 q_depth ;
198
+ u32 q_depth ;
199
199
u16 cq_vector ;
200
200
u16 sq_tail ;
201
201
u16 cq_head ;
@@ -2320,7 +2320,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
2320
2320
2321
2321
dev -> ctrl .cap = lo_hi_readq (dev -> bar + NVME_REG_CAP );
2322
2322
2323
- dev -> q_depth = min_t (u16 , NVME_CAP_MQES (dev -> ctrl .cap ) + 1 ,
2323
+ dev -> q_depth = min_t (u32 , NVME_CAP_MQES (dev -> ctrl .cap ) + 1 ,
2324
2324
io_queue_depth );
2325
2325
dev -> ctrl .sqsize = dev -> q_depth - 1 ; /* 0's based queue depth */
2326
2326
dev -> db_stride = 1 << NVME_CAP_STRIDE (dev -> ctrl .cap );
You can’t perform that action at this time.
0 commit comments