mjg 11a0ed9355 vfs: fix device count leak on vrele racing with vgone
The race is:

CPU1                                CPU2
                                    devfs_reclaim_vchr
make v_usecount 0
                                      VI_LOCK
                                      sees v_usecount == 0, no updates
                                      vp->v_rdev = NULL;
                                      ...
                                      VI_UNLOCK
VI_LOCK
v_decr_devcount
  sees v_rdev == NULL, no updates

In this scenario si_devcount decrement is not performed.

Note this can only happen if the vnode lock is not held.

Reviewed by:	kib
Tested by:	pho
Differential Revision:	https://reviews.freebsd.org/D23529
2020-02-10 22:28:54 +00:00
..
2020-02-09 12:10:37 +00:00
2020-02-09 11:53:37 +00:00
2020-02-03 17:35:11 +00:00
2020-02-03 22:26:00 +00:00
2020-02-03 17:35:11 +00:00
2019-09-03 18:56:25 +00:00
2019-08-28 16:18:23 +00:00
2020-01-05 12:48:19 +00:00
2020-01-05 12:48:19 +00:00
2019-03-12 05:10:41 +00:00
2018-10-12 00:32:45 +00:00
2020-01-05 12:48:19 +00:00
2020-02-03 17:35:11 +00:00
2019-12-15 21:11:15 +00:00
2018-06-01 13:26:45 +00:00
2019-02-20 09:38:19 +00:00
2019-12-15 21:11:15 +00:00
2019-12-15 21:26:50 +00:00
2020-02-03 17:35:11 +00:00
2020-02-03 17:35:11 +00:00
2020-01-12 23:52:16 +00:00
2020-02-09 11:53:37 +00:00
2020-02-09 11:53:37 +00:00
2020-02-02 16:34:57 +00:00