You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] drivers/block: fix-up schedule_timeout() usage
Use schedule_timeout_{un,}interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
310b587e01
commit
86e8486245
+2
-4
@@ -530,10 +530,8 @@ static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long t
|
||||
int success;
|
||||
|
||||
xdc_busy = 1;
|
||||
while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry)) {
|
||||
set_current_state(TASK_UNINTERRUPTIBLE);
|
||||
schedule_timeout(1);
|
||||
}
|
||||
while ((success = ((inb(port) & mask) != flags)) && time_before(jiffies, expiry))
|
||||
schedule_timeout_uninterruptible(1);
|
||||
xdc_busy = 0;
|
||||
return (success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user