Here's v2 of the "let's make POLL_ADD work on everything" patchset. As before, patches 1-2 are just basic prep patches, and should not have any functional changes in them. Patch 3 adds support for allocating a new io_poll_iocb unit if we get multiple additions through our queue proc for the wait queues. This new 'poll' addition is queued up as well, and it grabs a reference to the original poll request. Changes since v1: - Fix unused 'ret' variable in io_poll_double_wake() - Fail if we get an attempt at a third waitqueue addition (Pavel) -- Jens Axboe