]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lio_listio(2): send signal even if number of jobs is zero.
authorkib <kib@FreeBSD.org>
Tue, 1 Dec 2020 22:53:33 +0000 (22:53 +0000)
committerkib <kib@FreeBSD.org>
Tue, 1 Dec 2020 22:53:33 +0000 (22:53 +0000)
commitec388efe923c5382c24e4f4ea5c0959db8f029f6
tree92cada2eb65e3b65c06bdb3c22755d37c4262b65
parent707ebff9521150a21f8d51ff555937f7f7811492
lio_listio(2): send signal even if number of jobs is zero.

Right now, if lio registered zero jobs, syscall frees lio job
structure, cleaning up queued ksi.  As result, the realtime signal is
dequeued and never delivered.

Fix it by allowing sendsig() to copy ksi when job count is zero.

PR: 220398
Reported and reviewed by: asomers
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D27421
sys/kern/vfs_aio.c