Commit 3cc5288a authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Change lockrestart_do() to always call bch2_trans_begin()

More consistent behaviour means less likely to trip over ourselves in
silly ways.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent a88171c9
......@@ -110,12 +110,10 @@ static inline int bch2_trans_commit(struct btree_trans *trans,
({ \
int _ret; \
\
while (1) { \
_ret = (_do); \
if (_ret != -EINTR) \
break; \
do { \
bch2_trans_begin(_trans); \
} \
_ret = (_do); \
} while (_ret == -EINTR); \
\
_ret; \
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment