We don't need to do the busy dance for this driver. It's handled by
destroy_dev() entirely. Since all we did was busy/unbusy in
open/close, just delete them. We therefore don't need to track closes
either.
Details
Details
- Reviewers
• ian - Commits
- rS365735: Don't do the busy dance in icee_open/close
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Applied patch to freebsd 8 (which we use at $work but it has the icee.c source from -current) and freebsd 11 and it behaves as expected on our products.
Based on the commit history, I was the one who added the busy/unbusy, and I think I was just being a bit too overprotective, wanting to prevent doing a kldunload on the module while something had the cdev open. The TRACKCLOSE was just my misunderstanding of how that flag works, it was never needed.