dm crypt: use wake_up_process() instead of a wait queue
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 11 Jul 2018 16:10:51 +0000 (12:10 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:28 +0000 (15:24 -0400)
commitc7329eff72aa237d6bedef6dc57c93dc048d2a16
tree67593673bda0423578c806c0cda8c51a58b39ae0
parenta3fcf7253139609bf9ff901fbf955fba047e75dd
dm crypt: use wake_up_process() instead of a wait queue

This is a small simplification of dm-crypt - use wake_up_process()
instead of a wait queue in a case where only one process may be
waiting.  dm-writecache uses a similar pattern.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c