Thread (3 messages) 3 messages, 2 authors, 2016-09-06

Re: [PATCH] btrfs: fix WARNING in btrfs_select_ref_head()

From: David Sterba <hidden>
Date: 2016-07-08 15:26:53

On Mon, Jun 20, 2016 at 09:18:52AM +0800, Wang Xiaoguang wrote:
quoted hunk ↗ jump to hunk
@@ -2665,7 +2665,10 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
 
 		btrfs_free_delayed_extent_op(extent_op);
 		if (ret) {
+			spin_lock(&delayed_refs->lock);
 			locked_ref->processing = 0;
+			delayed_refs->num_heads_ready++;
+			spin_unlock(&delayed_refs->lock);
 			btrfs_delayed_ref_unlock(locked_ref);
 			btrfs_put_delayed_ref(ref);
 			btrfs_debug(fs_info, "run_one_delayed_ref returned %d", ret);
I don't feel qualified to review this and add it to the 4.8 first pull.
The patch will be in for-next though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help