writeback: use schedule_timeout_interruptible()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 16, 2009 - 7:59 am

Gitweb:     http://git.kernel.org/linus/49db041430e8a856dbc3af15430bf068f1c74655
Commit:     49db041430e8a856dbc3af15430bf068f1c74655
Parent:     8010c3b6349b407f8f11b3f4d7e9f94cb00fe528
Author:     Jens Axboe <jens.axboe@oracle.com>
AuthorDate: Tue Sep 15 21:27:40 2009 +0200
Committer:  Jens Axboe <jens.axboe@oracle.com>
CommitDate: Wed Sep 16 15:18:52 2009 +0200

    writeback: use schedule_timeout_interruptible()
    
    Gets rid of a manual set_current_state().
    
    Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
---
 fs/fs-writeback.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 55f0d4e..3475775 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -884,8 +884,7 @@ int bdi_writeback_task(struct bdi_writeback *wb)
 		}
 
 		wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
-		set_current_state(TASK_INTERRUPTIBLE);
-		schedule_timeout(wait_jiffies);
+		schedule_timeout_interruptible(wait_jiffies);
 		try_to_freeze();
 	}
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
writeback: use schedule_timeout_interruptible(), Linux Kernel Mailing ..., (Wed Sep 16, 7:59 am)