]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fd: remove redundant saturation check from fget_unlocked_seq
authormjg <mjg@FreeBSD.org>
Wed, 16 Dec 2020 18:01:41 +0000 (18:01 +0000)
committermjg <mjg@FreeBSD.org>
Wed, 16 Dec 2020 18:01:41 +0000 (18:01 +0000)
commit175422a03e51519a8c00826736adaa5c31c26da6
tree90ed3dd882dc634ada7de8b9e93d5d63b6b1d994
parent48d8f6aa9a1ade4173e3a261c68625dc817fcfae
fd: remove redundant saturation check from fget_unlocked_seq

refcount_acquire_if_not_zero returns true on saturation.
The case of 0 is handled by looping again, after which the originally
found pointer will no longer be there.

Noted by: kib
sys/kern/kern_descrip.c