aio: try to complete poll iocbs without context switch
authorChristoph Hellwig <hch@lst.de>
Sun, 20 May 2018 17:19:30 +0000 (19:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 26 May 2018 07:16:44 +0000 (09:16 +0200)
commit1962da0d2198a00a056a2915fbc6ec684c3bef0a
treeaec374beb42fb7e8d6dc95a602a1cd257df3ba82
parent2c14fa838cbefc23cf1c73ca167ed85b274b2913
aio: try to complete poll iocbs without context switch

If we can acquire ctx_lock without spinning we can just remove our
iocb from the active_reqs list, and thus complete the iocbs from the
wakeup context.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/aio.c