]> www.infradead.org Git - users/hch/misc.git/commit
block: change wait on bd_claiming to use a var_waitqueue
authorNeilBrown <neilb@suse.de>
Mon, 26 Aug 2024 06:30:58 +0000 (16:30 +1000)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Sep 2024 03:12:33 +0000 (21:12 -0600)
commitaa3d8a36780ab568d528348dd8115560f63ea16b
tree1709ddb34343ab05b0b4907ff03805e48a1b6072
parent76c313f658d2752e8527610677164aa7094ef7a5
block: change wait on bd_claiming to use a var_waitqueue

bd_prepare_to_claim() waits for a var to change, not for a bit to be
cleared. Change from bit_waitqueue() to __var_waitqueue() and
correspondingly use wake_up_var(). This will allow a future patch which
change the "bit" function to expect an "unsigned long *" instead of
"void *".

Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20240826063659.15327-2-neilb@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bdev.c