]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lio_listio(2): send signal even if number of jobs is zero.
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 1 Dec 2020 22:53:33 +0000 (22:53 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 1 Dec 2020 22:53:33 +0000 (22:53 +0000)
commit6814c2dac5741e500a600330306e424b0b64e5f0
tree92cada2eb65e3b65c06bdb3c22755d37c4262b65
parent29331656668c8c5e3b4bd3c0ab02cd64887c6b19
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