Skip to contentSkip to conversation

fs: jfs: fix a possible data race in metapage_writepage()

PATCH Markus Elfring 1 participant 1 message May 4, 2020 Kernel janitors

lore
Share & tools
lore
#0 lore raw

…

Quoted 4 lines

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

This data race is found by our concurrency fuzzer.

How do you think about a wording variant like the following?

Change description:
…
This data race was found by our concurrency fuzzer.

Thus use the spin lock “mp->log->gclock” for the assignment of the data structure member “log->cflag” to a local variable in this function implementation.

Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus