dm bufio: use waitqueue_active in __free_buffer_wake
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Mar 2023 15:25:49 +0000 (11:25 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 30 Mar 2023 19:57:50 +0000 (15:57 -0400)
commitf5f93541202f2e619c1395f5d98868b70cf60f50
tree4e066e079bff797e5e2bf8204580c23a13549b11
parent530f683ddcd211a4dc5d60a13e6f4918a541bb8d
dm bufio: use waitqueue_active in __free_buffer_wake

Save one spinlock by using waitqueue_active. We hold the bufio lock at
this place, so no one can add entries to the waitqueue at this point.

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