mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 09:04:57 +00: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:
parent
a88171c9e6
commit
3cc5288a62
1 changed files with 3 additions and 5 deletions
|
@ -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; \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue