mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	blk-wbt: remove duplicated setting in wbt_init
rwb->wc and rwb->queue_depth were overwritten by wbt_set_write_cache and wbt_set_queue_depth, remove the default setting. Signed-off-by: weiping zhang <zhangweiping@didichuxing.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									be597e974c
								
							
						
					
					
						commit
						612ea091fc
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -723,8 +723,6 @@ int wbt_init(struct request_queue *q) | ||||||
| 		init_waitqueue_head(&rwb->rq_wait[i].wait); | 		init_waitqueue_head(&rwb->rq_wait[i].wait); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	rwb->wc = 1; |  | ||||||
| 	rwb->queue_depth = RWB_DEF_DEPTH; |  | ||||||
| 	rwb->last_comp = rwb->last_issue = jiffies; | 	rwb->last_comp = rwb->last_issue = jiffies; | ||||||
| 	rwb->queue = q; | 	rwb->queue = q; | ||||||
| 	rwb->win_nsec = RWB_WINDOW_NSEC; | 	rwb->win_nsec = RWB_WINDOW_NSEC; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 weiping zhang
						weiping zhang