]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fd: remove redundant saturation check from fget_unlocked_seq
authorMateusz Guzik <mjg@FreeBSD.org>
Wed, 16 Dec 2020 18:01:41 +0000 (18:01 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Wed, 16 Dec 2020 18:01:41 +0000 (18:01 +0000)
commit08241fedc4fa2fe35ee068cdcab6a021c275ecbb
tree90ed3dd882dc634ada7de8b9e93d5d63b6b1d994
parent7bd0c4c47d83d3e58aa8076227f282514dbc4a6a
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