Message ID | 1390746738-7500-1-git-send-email-wangshilong1991@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Sun, Jan 26, 2014 at 10:32:18PM +0800, Wang Shilong wrote: > I can easily trigger the following warnings when enabling quota > in my virtual machine(running Opensuse), Steps are firstly creating > a subvolume full of fragment extents, and then create many snapshots > (500 in my test case). Good one. You can try to increase the stress and find more of such stalls, any while() loop using qgroups inside is a good candidate. Sometimes the scheduling points are implied by called functions. > Cc: Josef Bacik <jbacik@fb.com> > Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.cz> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 3512437..14e6a61 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1118,6 +1118,7 @@ int btrfs_find_all_roots(struct btrfs_trans_handle *trans, if (!node) break; bytenr = node->val; + cond_resched(); } ulist_free(tmp);