Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753389Ab3IXNTj (ORCPT ); Tue, 24 Sep 2013 09:19:39 -0400 Received: from mailgw1.uni-kl.de ([131.246.120.220]:39998 "EHLO mailgw1.uni-kl.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299Ab3IXNTi (ORCPT ); Tue, 24 Sep 2013 09:19:38 -0400 X-Greylist: delayed 512 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 Sep 2013 09:19:38 EDT Message-ID: <52418F5D.8030805@fastmail.fm> Date: Tue, 24 Sep 2013 15:10:53 +0200 From: Bernd Schubert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: KY Srinivasan , Jack Wang CC: Greg KH , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "ohering@suse.com" , "jbottomley@parallels.com" , "hch@infradead.org" , "linux-scsi@vger.kernel.org" , Mike Christie Subject: Re: Drivers: scsi: FLUSH timeout References: <1379705547-15028-1-git-send-email-kys@microsoft.com> <20130920203222.GA14306@kroah.com> <524180B7.7090307@gmail.com> <3413dbd7fa254fd380a84fe6d9cd87e1@SN2PR03MB061.namprd03.prod.outlook.com> In-Reply-To: <3413dbd7fa254fd380a84fe6d9cd87e1@SN2PR03MB061.namprd03.prod.outlook.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ITWM-CharSet: UTF-8 X-ITWM-Scanned-By: mail2.itwm.fhg.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2599 Lines: 78 On 09/24/2013 02:35 PM, KY Srinivasan wrote: > > >> -----Original Message----- >> From: Jack Wang [mailto:xjtuwjp@gmail.com] >> Sent: Tuesday, September 24, 2013 5:08 AM >> To: KY Srinivasan >> Cc: Greg KH; linux-kernel@vger.kernel.org; devel@linuxdriverproject.org; >> ohering@suse.com; jbottomley@parallels.com; hch@infradead.org; linux- >> scsi@vger.kernel.org; Mike Christie >> Subject: Re: Drivers: scsi: FLUSH timeout >> >> On 09/21/2013 07:24 AM, KY Srinivasan wrote: >>> >>> >>>> -----Original Message----- >>>> From: Greg KH [mailto:gregkh@linuxfoundation.org] >>>> Sent: Friday, September 20, 2013 1:32 PM >>>> To: KY Srinivasan >>>> Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org; >>>> ohering@suse.com; jbottomley@parallels.com; hch@infradead.org; linux- >>>> scsi@vger.kernel.org >>>> Subject: Re: Drivers: scsi: FLUSH timeout >>>> >>>> On Fri, Sep 20, 2013 at 12:32:27PM -0700, K. Y. Srinivasan wrote: >>>>> The SD_FLUSH_TIMEOUT value is currently hardcoded. >>>> >>>> Hardcoded where? Please, more context. >>> >>> This is defined in scsi/sd.h: >>> >>> #define SD_FLUSH_TIMEOUT (60 * HZ) >>>> >>>>> On our cloud, we sometimes hit this timeout. I was wondering if we >>>>> could make this a module parameter. If this is acceptable, I can send >>>>> you a patch for this. >>>> >>>> A module parameter don't make sense for a per-device value, does it? >>> Currently, the 60 second timeout is applied across devices. Ideally, I want to be >>> able to control the FLUSH TIMEOUT as we currently do I/O timeout. If this is >>> acceptable, I can work on a patch for that as well. >>> >>> Regards, >>> >>> K. Y >>>> >>>> greg k-h >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> Hi, >> >> Back to 2010, Mike(cc-ed) try to add a flush time out interface, similar >> to what you want here, no idea why it's just ignored? >> http://www.spinics.net/lists/linux-scsi/msg45017.html > > Thanks Jack. Mike, do you know what the concerns were as to why this > patch was not accepted? > See also this discussion: http://marc.info/?l=linux-scsi&m=127167679221319&w=2 And retries have been added by commit c213e1407be6b04b144794399a91472e0ef92aec Cheers, Bernd -- 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/