random: convert to ->poll_mask
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Apr 2018 13:29:32 +0000 (15:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 26 May 2018 07:16:44 +0000 (09:16 +0200)
commit89b310a2b28dafbf3958e292785d51b7017da19e
tree4f25de40325970925691d0b9fcc60ad7d5b6ac14
parent652fe8e87621d95a94edd25a08d5754abd878161
random: convert to ->poll_mask

The big change is that random_read_wait and random_write_wait are merged
into a single waitqueue that uses keyed wakeups.  Because wait_event_*
doesn't know about that this will lead to occassional spurious wakeups
in _random_read and add_hwgenerator_randomness, but wait_event_* is
designed to handle these and were are not in a a hot path there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c