Update bcachefs sources to a897b0f199 bcachefs: Fix a locking bug

This commit is contained in:
Kent Overstreet 2020-03-30 17:46:47 -04:00
parent fad8236b81
commit c452666fb3
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
275cba438ed6630d5e4db7c9164ac5334a8a4cd7
a897b0f199b2fb888f5885f115306759199094dd

View File

@ -114,7 +114,7 @@ static inline void btree_node_write_if_need(struct bch_fs *c, struct btree *b,
break;
}
six_unlock_read(&b->lock);
six_unlock_type(&b->lock, lock_held);
btree_node_wait_on_io(b);
btree_node_lock_type(c, b, lock_held);
}