]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit273a0e9ff5e95b6a44939a42df7c479b1e8f42ad
tree4f25de40325970925691d0b9fcc60ad7d5b6ac14
parent16b217c4bddb07f5f049b3bb11cf7540ed3f1524
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