All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() with
@ 2004-07-20 13:02 Pavel Machek
  2004-07-20 13:08 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() Pavel Machek
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Pavel Machek @ 2004-07-20 13:02 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

Hi!

> I would appreciate any comments from the janitors list.
> 
> 
> Applys-to: 2.6.7
> 
> Description: Uses msleep() instead of schedule_timeout() to guarantee
> the task delays at least the desired time amount.
> 
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

I'm not sure it makes sense.... so it will just spin once more? Exact
timeout does not seem too critical here.
								Pavel

> --- linux-vanilla/drivers/block/nbd.c	2004-06-16 05:19:01.000000000 +0000
> +++ linux-dev/drivers/block/nbd.c	2004-07-02 17:24:31.000000000 +0000
> @@ -139,8 +139,7 @@ static void nbd_end_request(struct reque
>  		spin_unlock(&lo->queue_lock);
>  		printk(KERN_DEBUG "%s: request %p still in use (%d), waiting\n",
>  		    lo->disk->disk_name, req, req->ref_count);
> -		set_current_state(TASK_UNINTERRUPTIBLE);
> -		schedule_timeout(HZ); /* wait a second */
> +		msleep(1000);
>  		spin_lock(&lo->queue_lock);
>  	}
>  	spin_unlock(&lo->queue_lock);

-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

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

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

end of thread, other threads:[~2004-07-20 16:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-20 13:02 [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() with Pavel Machek
2004-07-20 13:08 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() Pavel Machek
2004-07-20 13:10 ` Felipe W Damasio
2004-07-20 16:17 ` Nishanth Aravamudan
2004-07-20 16:20 ` Nishanth Aravamudan
2004-07-20 16:23 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() with Nishanth Aravamudan
2004-07-20 16:24 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() Pavel Machek
2004-07-20 16:26 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() with Pavel Machek
2004-07-20 16:35 ` [Kernel-janitors] Re: [PATCH] nbd: replace schedule_timeout() Nishanth Aravamudan
2004-07-20 16:36 ` Nishanth Aravamudan
2004-07-20 16:37 ` Pavel Machek
2004-07-20 16:42 ` Felipe W Damasio

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.