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

FreeBSD: Fix file descriptor leak on pool import. #15630

Merged
merged 1 commit into from
Jan 23, 2024

Commits on Jan 20, 2024

  1. Fix file descriptor leak on pool import.

    Descriptor leak can be easily reproduced by doing:
    
    	# zpool import tank
    	# sysctl kern.openfiles
    	# zpool export tank; zpool import tank
    	# sysctl kern.openfiles
    
    We were leaking four file descriptors on every import.
    
    Similar leak most likely existed when using file-based VDEVs.
    
    Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
    pjd committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    46e57a3 View commit details
    Browse the repository at this point in the history