On 5/5/22 11:08 AM, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > In the next patch, we're going to rewrite scrub_scan_all_inodes to > schedule per-inogrp workqueue items that will run the iterator function. > In other words, the worker threads in phase 3 wil soon cease to be > per-AG threads. > > To prepare for this, we must modify phase 3 so that any writes to shared > state are protected by the appropriate per-AG locks. As far as I can > tell, the only updates to shared state are the per-AG action lists, so > create some per-AG locks for phase 3 and create locked wrappers for the > action_list_* functions if we find things to repair. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> Looks fine. Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>