Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/wait: Remove unused bit_wait_io_timeout

bit_wait_io_timeout has been unused since 2016's
commit 62906027091f ("mm: add PageWaiters indicating tasks are waiting for a page bit")

Remove it.

Signed-off-by: "Dr. David Alan Gilbert" <linux@treblig.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20241001234016.231696-1-linux@treblig.org

authored by

Dr. David Alan Gilbert and committed by
Peter Zijlstra
0ac8f14e b15148ce

-15
-1
include/linux/wait_bit.h
··· 49 49 extern int bit_wait(struct wait_bit_key *key, int mode); 50 50 extern int bit_wait_io(struct wait_bit_key *key, int mode); 51 51 extern int bit_wait_timeout(struct wait_bit_key *key, int mode); 52 - extern int bit_wait_io_timeout(struct wait_bit_key *key, int mode); 53 52 54 53 /** 55 54 * wait_on_bit - wait for a bit to be cleared
-14
kernel/sched/wait_bit.c
··· 266 266 } 267 267 EXPORT_SYMBOL_GPL(bit_wait_timeout); 268 268 269 - __sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode) 270 - { 271 - unsigned long now = READ_ONCE(jiffies); 272 - 273 - if (time_after_eq(now, word->timeout)) 274 - return -EAGAIN; 275 - io_schedule_timeout(word->timeout - now); 276 - if (signal_pending_state(mode, current)) 277 - return -EINTR; 278 - 279 - return 0; 280 - } 281 - EXPORT_SYMBOL_GPL(bit_wait_io_timeout); 282 - 283 269 void __init wait_bit_init(void) 284 270 { 285 271 int i;