Skip to content

Commit 0ac8f14

Browse files
Dr. David Alan GilbertPeter Zijlstra
authored andcommitted
sched/wait: Remove unused bit_wait_io_timeout
bit_wait_io_timeout has been unused since 2016's commit 6290602 ("mm: add PageWaiters indicating tasks are waiting for a page bit") Remove it. Signed-off-by: "Dr. David Alan Gilbert" <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Tim Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b15148c commit 0ac8f14

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

include/linux/wait_bit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync
4949
extern int bit_wait(struct wait_bit_key *key, int mode);
5050
extern int bit_wait_io(struct wait_bit_key *key, int mode);
5151
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);
5352

5453
/**
5554
* wait_on_bit - wait for a bit to be cleared

kernel/sched/wait_bit.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -266,20 +266,6 @@ __sched int bit_wait_timeout(struct wait_bit_key *word, int mode)
266266
}
267267
EXPORT_SYMBOL_GPL(bit_wait_timeout);
268268

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-
283269
void __init wait_bit_init(void)
284270
{
285271
int i;

0 commit comments

Comments
 (0)