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)
commite8693bcfa0b4a56268946f0756153d942cb66cf7
tree49ee2926bf5140d84172acb5f60ffd44b336e014
parentbfe4037e722ec672c9dafd5730d9132afeeb76e9
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