All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Bernd Schubert <bs_lists@aakef.fastmail.fm>
Cc: "Desai, Kashyap" <Kashyap.Desai@lsi.com>,
	James Bottomley <James.Bottomley@suse.de>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] Re: SYNCHRONIZE_CACHE from sd_preppare_flush does not have retries.!
Date: Tue, 20 Apr 2010 14:32:44 -0500	[thread overview]
Message-ID: <4BCE015C.7060307@cs.wisc.edu> (raw)
In-Reply-To: <201004201654.04934.bs_lists@aakef.fastmail.fm>

On 04/20/2010 09:54 AM, Bernd Schubert wrote:
> On Tuesday 20 April 2010, Desai, Kashyap wrote:
>>>>>> all block device flushes or is this more device specific? I was
>>>>>> thinking that we may want to create a sysfs interface under the
>>>
>>> block
>>>
>>>>>> dirs and have blk-sysfs.c and blk-barrier.c handle this.
>>>
>>> queue_flush
>>>
>>>>>> could set the timeout and retries that is set by some new files
>>>
>>> under
>>>
>>>>>> /sys/block/sdX/queue/ ?
>>
>> Thanks a lot for your comments.
>>
>> This is very close to my understanding. I feel this is more close to block
>>   layer and I am almost agreeing with your thought. I tried to understand
>>   why upstream does not have retries at queue_flush()/sd_prepare_flush() ???
>>   It looks like there is not specific reason. If I am wrong can someone
>>   explain is there any specific reason not to set rq->retries in
>>   sd_prepare_flush?
>
> I don't understand why we should need another queue timeout, when we
> already have a device timeout that is used as queue timeout?


I think a possible problem is that the one timeout setting is now being 
used for two different operations. Currently, for disks that timeout is 
used for READ/WRITEs. For the sync cache, if we are hitting a problem 
with it taking longer than the current value of 30 secs, then could we 
want to set the READ/WRITE timeout to a lower value like 60 secs, but 
then the sync cache timeout might have to be multiple minutes.

  reply	other threads:[~2010-04-20 19:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 11:32 SYNCHRONIZE_CACHE from sd_preppare_flush does not have retries.! Desai, Kashyap
2010-04-19 16:20 ` Mike Christie
2010-04-19 18:14   ` Bernd Schubert
2010-04-19 18:45     ` James Bottomley
2010-04-19 19:17       ` Bernd Schubert
2010-04-20  5:05         ` Desai, Kashyap
2010-04-20 14:54           ` [PATCH] " Bernd Schubert
2010-04-20 19:32             ` Mike Christie [this message]
2010-04-20 20:38               ` Bernd Schubert
2010-04-22 16:23                 ` James Bottomley
2010-04-29 20:13       ` Ric Wheeler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BCE015C.7060307@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@suse.de \
    --cc=Kashyap.Desai@lsi.com \
    --cc=bs_lists@aakef.fastmail.fm \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.