mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-28 08:27:29 -04:00
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: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
committed by
Kent Overstreet
parent
a88171c9e6
commit
3cc5288a62
@@ -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; \
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user