From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boaz Harrosh Subject: Re: How many retries to allow? Date: Sun, 28 Sep 2008 12:25:02 +0300 Message-ID: <48DF4D6E.5060509@panasas.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from gw-ca.panasas.com ([66.104.249.162]:4672 "EHLO laguna.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751478AbYI1JZR (ORCPT ); Sun, 28 Sep 2008 05:25:17 -0400 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: James Bottomley , SCSI development list Alan Stern wrote: > James and Boaz: > > Here's a question. Suppose a device returns NOT READY sense key > repeatedly. How long should the request be retried before we give up? > If we never give up then the request will never finish, so the caller > will hang. > > Alan Stern > I always thought request->retries was for that. Perhaps I misunderstood. I think there should be one user settable global counter that will limit all retries of any kind. Just my $0.017 Boaz