@@ -771,7 +771,7 @@ static inline void __bch2_trans_unlock(struct btree_trans *trans)
771
771
}
772
772
773
773
static noinline __cold void bch2_trans_relock_fail (struct btree_trans * trans , struct btree_path * path ,
774
- struct get_locks_fail * f , bool trace )
774
+ struct get_locks_fail * f , bool trace , ulong ip )
775
775
{
776
776
if (!trace )
777
777
goto out ;
@@ -796,7 +796,7 @@ static noinline __cold void bch2_trans_relock_fail(struct btree_trans *trans, st
796
796
prt_printf (& buf , " total locked %u.%u.%u" , c .n [0 ], c .n [1 ], c .n [2 ]);
797
797
}
798
798
799
- trace_trans_restart_relock (trans , _RET_IP_ , buf .buf );
799
+ trace_trans_restart_relock (trans , ip , buf .buf );
800
800
printbuf_exit (& buf );
801
801
}
802
802
@@ -806,7 +806,7 @@ static noinline __cold void bch2_trans_relock_fail(struct btree_trans *trans, st
806
806
bch2_trans_verify_locks (trans );
807
807
}
808
808
809
- static inline int __bch2_trans_relock (struct btree_trans * trans , bool trace )
809
+ static inline int __bch2_trans_relock (struct btree_trans * trans , bool trace , ulong ip )
810
810
{
811
811
bch2_trans_verify_locks (trans );
812
812
@@ -825,7 +825,7 @@ static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace)
825
825
if (path -> should_be_locked &&
826
826
(ret = btree_path_get_locks (trans , path , false, & f ,
827
827
BCH_ERR_transaction_restart_relock ))) {
828
- bch2_trans_relock_fail (trans , path , & f , trace );
828
+ bch2_trans_relock_fail (trans , path , & f , trace , ip );
829
829
return ret ;
830
830
}
831
831
}
@@ -838,12 +838,12 @@ static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace)
838
838
839
839
int bch2_trans_relock (struct btree_trans * trans )
840
840
{
841
- return __bch2_trans_relock (trans , true);
841
+ return __bch2_trans_relock (trans , true, _RET_IP_ );
842
842
}
843
843
844
844
int bch2_trans_relock_notrace (struct btree_trans * trans )
845
845
{
846
- return __bch2_trans_relock (trans , false);
846
+ return __bch2_trans_relock (trans , false, _RET_IP_ );
847
847
}
848
848
849
849
void bch2_trans_unlock (struct btree_trans * trans )
0 commit comments