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 {
120120 unsigned max_qid ;
121121 unsigned io_queues [HCTX_MAX_TYPES ];
122122 unsigned int num_vecs ;
123- u16 q_depth ;
123+ u32 q_depth ;
124124 int io_sqes ;
125125 u32 db_stride ;
126126 void __iomem * bar ;
@@ -157,13 +157,13 @@ struct nvme_dev {
157157static int io_queue_depth_set (const char * val , const struct kernel_param * kp )
158158{
159159 int ret ;
160- u16 n ;
160+ u32 n ;
161161
162- ret = kstrtou16 (val , 10 , & n );
162+ ret = kstrtou32 (val , 10 , & n );
163163 if (ret != 0 || n < 2 )
164164 return - EINVAL ;
165165
166- return param_set_ushort (val , kp );
166+ return param_set_uint (val , kp );
167167}
168168
169169static inline unsigned int sq_idx (unsigned int qid , u32 stride )
@@ -195,7 +195,7 @@ struct nvme_queue {
195195 dma_addr_t sq_dma_addr ;
196196 dma_addr_t cq_dma_addr ;
197197 u32 __iomem * q_db ;
198- u16 q_depth ;
198+ u32 q_depth ;
199199 u16 cq_vector ;
200200 u16 sq_tail ;
201201 u16 cq_head ;
@@ -2320,7 +2320,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
23202320
23212321 dev -> ctrl .cap = lo_hi_readq (dev -> bar + NVME_REG_CAP );
23222322
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 ,
23242324 io_queue_depth );
23252325 dev -> ctrl .sqsize = dev -> q_depth - 1 ; /* 0's based queue depth */
23262326 dev -> db_stride = 1 << NVME_CAP_STRIDE (dev -> ctrl .cap );
You can’t perform that action at this time.
0 commit comments