diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-07-17 19:35:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:36 -0400 |
commit | e941ae7d3afc68127adef917a2b779dabe83fdfe (patch) | |
tree | 577edab610a98f574dbfc9cc9bf2622959affe95 /fs/bcachefs/ec.c | |
parent | 445d184af25abd70575539f7d7b2c8e25b8c49c8 (diff) | |
download | lwn-e941ae7d3afc68127adef917a2b779dabe83fdfe.tar.gz lwn-e941ae7d3afc68127adef917a2b779dabe83fdfe.zip |
bcachefs: Add a counter for btree_trans restarts
This will help us improve nested transactions - we need to add
assertions that whenever an inner transaction handles a restart, it
still returns -EINTR to the outer transaction.
This also adds nested_lockrestart_do() and nested_commit_do() which use
the new counters to correctly return -EINTR when the transaction was
restarted.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/ec.c')
0 files changed, 0 insertions, 0 deletions