public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 8/9]  block/swim3: replace direct  assignment with set_current_state()
@ 2004-09-23 20:44 janitor
  0 siblings, 0 replies; only message in thread
From: janitor @ 2004-09-23 20:44 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, janitor, nacc




Any comments would be appreciated. 

Description: set_current_state() is used instead of direct assignment of
current->state.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---

 linux-2.6.9-rc2-bk7-max/drivers/block/swim3.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/block/swim3.c~set_current_state-drivers_block_swim3 drivers/block/swim3.c
--- linux-2.6.9-rc2-bk7/drivers/block/swim3.c~set_current_state-drivers_block_swim3	2004-09-21 21:17:25.000000000 +0200
+++ linux-2.6.9-rc2-bk7-max/drivers/block/swim3.c	2004-09-21 21:17:25.000000000 +0200
@@ -832,7 +832,7 @@ static int fd_eject(struct floppy_state 
 			break;
 		}
 		swim3_select(fs, RELAX);
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(1);
 		if (swim3_readbit(fs, DISK_IN) == 0)
 			break;
@@ -900,7 +900,7 @@ static int floppy_open(struct inode *ino
 				break;
 			}
 			swim3_select(fs, RELAX);
-			current->state = TASK_INTERRUPTIBLE;
+			set_current_state(TASK_INTERRUPTIBLE);
 			schedule_timeout(1);
 		}
 		if (err == 0 && (swim3_readbit(fs, SEEK_COMPLETE) == 0
@@ -984,7 +984,7 @@ static int floppy_revalidate(struct gend
 		if (signal_pending(current))
 			break;
 		swim3_select(fs, RELAX);
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(1);
 	}
 	ret = swim3_readbit(fs, SEEK_COMPLETE) == 0
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-24  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23 20:44 [patch 8/9] block/swim3: replace direct assignment with set_current_state() janitor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox