Re: [PATCH] fs: jfs: fix a possible data race in txBegin()

From: Jia-Ju Bai
Date: Tue May 05 2020 - 00:10:31 EST




On 2020/5/5 0:15, Markus Elfring wrote:
Thus, a data race can occur for tblk->flag.

To fix this data race, the spinlock log->gclock is used in
txBegin().

This data race is found by our concurrency fuzzer.
How do you think about a wording variant like the following?

Change description:
A data race can occur for the data structure member âflagâ.
This data race was found by our concurrency fuzzer.

Thus use the spin lock âgclockâ for the resetting of five
data structure members in this function implementation.


Would you like to add the tag âFixesâ to the commit message?


Thanks, Markus.
I am not sure how to add the tag "Fixes"...
I need to find which previous commit add the code about txBegin()?


Best wishes,
Jia-Ju Bai