File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4853,7 +4853,7 @@ static void add_xhlock(struct held_lock *hlock)
4853
4853
4854
4854
/* Initialize hist_lock's members */
4855
4855
xhlock -> hlock = * hlock ;
4856
- xhlock -> hist_id = current -> hist_id ++ ;
4856
+ xhlock -> hist_id = ++ current -> hist_id ;
4857
4857
4858
4858
xhlock -> trace .nr_entries = 0 ;
4859
4859
xhlock -> trace .max_entries = MAX_XHLOCK_TRACE_ENTRIES ;
@@ -5029,12 +5029,12 @@ static void commit_xhlocks(struct cross_lock *xlock)
5029
5029
break ;
5030
5030
5031
5031
/*
5032
- * Filter out the cases that the ring buffer was
5033
- * overwritten and the previous entry has a bigger
5034
- * hist_id than the following one, which is impossible
5035
- * otherwise.
5032
+ * Filter out the cases where the ring buffer was
5033
+ * overwritten and the current entry has a bigger
5034
+ * hist_id than the previous one, which is impossible
5035
+ * otherwise:
5036
5036
*/
5037
- if (unlikely (before (xhlock -> hist_id , prev_hist_id )))
5037
+ if (unlikely (before (prev_hist_id , xhlock -> hist_id )))
5038
5038
break ;
5039
5039
5040
5040
prev_hist_id = xhlock -> hist_id ;
You can’t perform that action at this time.
0 commit comments