Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030443AbVIIULb (ORCPT ); Fri, 9 Sep 2005 16:11:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030446AbVIIULa (ORCPT ); Fri, 9 Sep 2005 16:11:30 -0400 Received: from magic.adaptec.com ([216.52.22.17]:15822 "EHLO magic.adaptec.com") by vger.kernel.org with ESMTP id S1030441AbVIIUL3 (ORCPT ); Fri, 9 Sep 2005 16:11:29 -0400 Message-ID: <4321EC6B.2000205@adaptec.com> Date: Fri, 09 Sep 2005 16:11:23 -0400 From: Luben Tuikov User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: nish.aravamudan@gmail.com CC: Linux Kernel Mailing List , SCSI Mailing List Subject: Re: [PATCH 2.6.13 5/14] sas-class: sas_discover.c Discover process (end devices) References: <4321E51F.8040906@adaptec.com> <29495f1d05090912591d55be5f@mail.gmail.com> In-Reply-To: <29495f1d05090912591d55be5f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Sep 2005 20:11:28.0492 (UTC) FILETIME=[A9896AC0:01C5B57A] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 36 On 09/09/05 15:59, Nish Aravamudan wrote: > On 9/9/05, Luben Tuikov wrote: > >>Signed-off-by: Luben Tuikov > > > > > > +static int sas_execute_task(struct sas_task *task, void *buffer, int size, > + int pci_dma_dir) > > > > + set_current_state(TASK_INTERRUPTIBLE); > + schedule_timeout(HZ); > > > > + set_current_state(TASK_INTERRUPTIBLE); > + schedule_timeout(5*HZ); > > Can you use msleep_interruptible() here? I don't see wait-queues in > the immediate vicinity. If not, and you're going for the normal -mm > route (and from there to mainline), can you use > schedule_timeout_interruptible(), please? Yes, sure. I don't see why not. Luben - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/