]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched/wait: Remove unused bit_wait_io_timeout
authorDr. David Alan Gilbert <linux@treblig.org>
Tue, 1 Oct 2024 23:40:16 +0000 (00:40 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:41 +0000 (09:28 +0200)
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
include/linux/wait_bit.h
kernel/sched/wait_bit.c

index 6346e26fbfd17a39dd3934cb3a63516ac9db53e1..9e29d79fc790affbd9c933915c06803be54cd7ec 100644 (file)
@@ -49,7 +49,6 @@ int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync
 extern int bit_wait(struct wait_bit_key *key, int mode);
 extern int bit_wait_io(struct wait_bit_key *key, int mode);
 extern int bit_wait_timeout(struct wait_bit_key *key, int mode);
-extern int bit_wait_io_timeout(struct wait_bit_key *key, int mode);
 
 /**
  * wait_on_bit - wait for a bit to be cleared
index 22ec270f5ab591d91466273f808fdee7c073b499..b410b61cec959cefcf9946201345299e9f242d0b 100644 (file)
@@ -266,20 +266,6 @@ __sched int bit_wait_timeout(struct wait_bit_key *word, int mode)
 }
 EXPORT_SYMBOL_GPL(bit_wait_timeout);
 
-__sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode)
-{
-       unsigned long now = READ_ONCE(jiffies);
-
-       if (time_after_eq(now, word->timeout))
-               return -EAGAIN;
-       io_schedule_timeout(word->timeout - now);
-       if (signal_pending_state(mode, current))
-               return -EINTR;
-
-       return 0;
-}
-EXPORT_SYMBOL_GPL(bit_wait_io_timeout);
-
 void __init wait_bit_init(void)
 {
        int i;