Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fscache: make fscache_enable() thread safe #1934

Merged
merged 1 commit into from
Nov 26, 2018
Merged

fscache: make fscache_enable() thread safe #1934

merged 1 commit into from
Nov 26, 2018

Conversation

benpeart
Copy link

The recent change to make fscache thread specific relied on fscache_enable() called first from the primary thread before being called in parallel worker threads. Make that more robust and protect it with a critical
section to avoid any issues.

Helped-by: Johannes Schindelin johannes.schindelin@gmx.de
Signed-off-by: Ben Peart benpeart@microsoft.com

The recent change to make fscache thread specific relied on fscache_enable()
being called first from the primary thread before being called in parallel
from worker threads.  Make that more robust and protect it with a critical
section to avoid any issues.

Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ben Peart <benpeart@microsoft.com>
@dscho
Copy link
Member

dscho commented Nov 23, 2018

@benpeart I rebased your patch on top of master, to avoid merge conflicts, okay?

@dscho dscho merged commit 1c56983 into git-for-windows:master Nov 26, 2018
@dscho
Copy link
Member

dscho commented Nov 26, 2018

Thank you! The test failures are caused (for some dubious, and new reason) by the test suite all of a sudden not being able to remove the test directories reliably. Not the fault of these changes.

@dscho dscho added this to the v2.19.2(2) milestone Nov 27, 2018
dscho added a commit to dscho/git that referenced this pull request Nov 27, 2018
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Nov 30, 2018
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Dec 1, 2018
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Dec 9, 2018
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Dec 15, 2018
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Feb 7, 2019
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Feb 7, 2019
…safe-enable-gfw

fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Feb 12, 2019
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Oct 11, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Oct 20, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Oct 20, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Oct 21, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 21, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 21, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 22, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Oct 23, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Oct 30, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 1, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 6, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Nov 22, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Nov 22, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Nov 22, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Nov 22, 2024
fscache: make fscache_enable() thread safe
dscho added a commit that referenced this pull request Nov 22, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 25, 2024
fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 25, 2024
fscache: make fscache_enable() thread safe
dscho added a commit to dscho/git that referenced this pull request Nov 25, 2024
…safe-enable-gfw

fscache: make fscache_enable() thread safe
git-for-windows-ci pushed a commit that referenced this pull request Nov 25, 2024
fscache: make fscache_enable() thread safe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants