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

Wait iput_async before evict_inodes to prevent race #4854

Closed
wants to merge 2 commits into from

Commits on Jul 15, 2016

  1. Wait iput_async before evict_inodes to prevent race

    wait for iput_async before entering evict_inodes in generic_shutdown_super.
    The reason we must finish before evict_inodes is iput when lazytime is on or
    when zfs_purgedir calls zfs_zget would bump i_count from 0 to 1. This would
    race with the i_count check in evict_inodes, so it could destroy the inode
    while we are still using it.
    
    Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
    Chunwei Chen committed Jul 15, 2016
    Configuration menu
    Copy the full SHA
    6fb105e View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2016

  1. Fix NULL pointer in zfs_preumount from 1d9b3bd

    When zfs_domount fails zsb will be freed, and its caller
    mount_nodev/get_sb_nodev will do deactivate_locked_super and calls into
    zfs_preumount.
    
    In order to make sure we don't touch any nonexistent stuff, we must make sure
    s_fs_info is NULL in the fail path so zfs_preumount can easily check that.
    
    Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
    Chunwei Chen committed Jul 19, 2016
    Configuration menu
    Copy the full SHA
    4df8fe0 View commit details
    Browse the repository at this point in the history