--- - branch: MAIN date: Mon Mar 28 12:37:27 UTC 2022 files: - new: '1.206' old: '1.205' path: src/sys/miscfs/specfs/spec_vnops.c pathrev: src/sys/miscfs/specfs/spec_vnops.c@1.206 type: modified id: 20220328T123727Z.410ec32e848326a1d0316ccdcf6a61ec80995231 log: | specfs: Take an I/O reference across bdev/cdev_open. - Revoke is used to invalidate all prior access control checks when device permissions are changing, so it must wait for .d_open to exit so any new access must go through new access control checks. - Revoke is used by vdevgone in xyz_detach to wait until all use of the driver's data structures have completed before xyz_detach frees them. So we need to make sure spec_close waits for .d_open too. module: src subject: 'CVS commit: src/sys/miscfs/specfs' unixtime: '1648471047' user: riastradh