All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] fs/smbfs/proc.c -> replace direct assignment with
@ 2005-06-30  8:28 aLeJ
  2005-06-30  8:28 ` aLeJ
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aLeJ @ 2005-06-30  8:28 UTC (permalink / raw)
  To: kernel-janitors

Description:
Use set_current_state() instead of using a direct assignment

Signed-off-by: Alejandro Andrés <fuzzy.alej@gmail.com>

--- fs/smbfs/proc.c.orig	2005-06-22 21:33:05.000000000 +0200
+++ fs/smbfs/proc.c	2005-06-30 12:02:45.000000000 +0200
@@ -2397,7 +2397,7 @@ smb_proc_readdir_long(struct file *filp,
 		if (req->rq_rcls = ERRSRV && req->rq_err = ERRerror) {
 			/* a damn Win95 bug - sometimes it clags if you 
 			   ask it too fast */
-			current->state = TASK_INTERRUPTIBLE;
+			set_current_state(TASK_INTERRUPTIBLE);
 			schedule_timeout(HZ/5);
 			continue;
                 }


_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-30 20:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-30  8:28 [KJ] fs/smbfs/proc.c -> replace direct assignment with aLeJ
2005-06-30  8:28 ` aLeJ
2005-06-30 16:12 ` Ricardo Nabinger Sanchez
2005-06-30 17:53 ` aLeJ
2005-06-30 18:39 ` Nishanth Aravamudan
2005-06-30 20:03 ` aLeJ

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.