]> git.baikalelectronics.ru Git - kernel.git/commit
aio: allow direct aio poll comletions for keyed wakeups
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Jul 2018 10:25:17 +0000 (12:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 6 Aug 2018 08:24:39 +0000 (10:24 +0200)
commitd2e56aa6889ee35f666c7cced1aa324e32f27260
tree49ee2926bf5140d84172acb5f60ffd44b336e014
parente433c8c716fef51767f80aeeca97c7fc6d7ec9ed
aio: allow direct aio poll comletions for keyed wakeups

If we get a keyed wakeup for a aio poll waitqueue and wake can acquire the
ctx_lock without spinning we can just complete the iocb straight from the
wakeup callback to avoid a context switch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Avi Kivity <avi@scylladb.com>
fs/aio.c