mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	writeback: make wakeup_dirtytime_writeback() handle multiple bdi_writeback's
wakeup_dirtytime_writeback() currently only starts writeback on the root wb (bdi_writeback). For cgroup writeback support, update the function to check all wbs. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Jan Kara <jack@suse.cz> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
		
							parent
							
								
									f2b6512160
								
							
						
					
					
						commit
						001fe6f617
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
					@ -1260,8 +1260,11 @@ static void wakeup_dirtytime_writeback(struct work_struct *w)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	rcu_read_lock();
 | 
						rcu_read_lock();
 | 
				
			||||||
	list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) {
 | 
						list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) {
 | 
				
			||||||
		if (list_empty(&bdi->wb.b_dirty_time))
 | 
							struct bdi_writeback *wb;
 | 
				
			||||||
			continue;
 | 
							struct wb_iter iter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							bdi_for_each_wb(wb, bdi, &iter, 0)
 | 
				
			||||||
 | 
								if (!list_empty(&bdi->wb.b_dirty_time))
 | 
				
			||||||
				wb_wakeup(&bdi->wb);
 | 
									wb_wakeup(&bdi->wb);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	rcu_read_unlock();
 | 
						rcu_read_unlock();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue