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

Fix preemptible warning in aggsum_add() #7610

Merged
merged 1 commit into from
Jun 7, 2018

Commits on Jun 7, 2018

  1. Fix preemptible warning in aggsum_add()

    In the new aggsum counters the CPU_SEQID macro should be surrounded by
    kpreempt_disable)() and kpreempt_enable() calls to prevent a Linux
    kernel BUG warning.  The addsum_add() function use the cpuid to
    minimize lock contention when selecting a bucket, after selection
    the bucket is protected by a mutex and it is safe to reschedule the
    process to a different processor at any time.
    
    Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
    Issue openzfs#7609
    behlendorf committed Jun 7, 2018
    Configuration menu
    Copy the full SHA
    76ace59 View commit details
    Browse the repository at this point in the history