public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh@panasas.com>
To: Fred Isaman <iisaman@netapp.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>,
	NFS list <linux-nfs@vger.kernel.org>,
	Benny Halevy <bhalevy@panasas.com>,
	Andy Adamson <andros@netapp.com>
Subject: Re: [RFC 1/3] SQUASHME: Generalize the device cache so it can be used by all layouts
Date: Mon, 13 Sep 2010 14:45:13 +0200	[thread overview]
Message-ID: <4C8E1CD9.1040404@panasas.com> (raw)
In-Reply-To: <AANLkTinJXRe7QWhPD5OV9KA9uUribFXwSenmbJyqnzk1@mail.gmail.com>

On 09/13/2010 02:16 PM, Fred Isaman wrote:
> On Mon, Sep 13, 2010 at 2:50 AM, Boaz Harrosh <bharrosh@panasas.com> wrote:
>>> This doesn't look like it needs to be part of the initial single-layout
>>> submission. Why is it being labelled as a squashme?
>>>
>>> Trond
>>
>> No, this is a device_id cache per nfs-client it is part of the initial
>> getdeviceinfo call. Many "single-layout" may refer to the same device_id
>> therefor it is cached so the long getdeviceinfo call can be done only once.
>>
>> Cheers
>> Boaz
> 
> I agree.  I'll roll it into the next submission.
> 
> Fred

Thanks Fred. I would like if you can report that it actually works, as I have
not tested it.

BTW. For the objects I have decided to not keep a reference on the device_id
during the lseg life span, but just keep a reference to the underlying osd_device
so the device_id can be removed from the cache but still be used by a 
layout_seg/io_state. I have tested and it works and apparently it unmounts
cleanly without any reference leaks. Will post patches later once the new API
hits Benny's tree.

Thanks
Boaz

  reply	other threads:[~2010-09-13 12:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-12 17:01 [RFC 0/3] Ugliness in struct pnfs_layout_segment and possible uselessness of the device cache Boaz Harrosh
2010-09-12 17:03 ` [RFC 1/3] SQUASHME: Generalize the device cache so it can be used by all layouts Boaz Harrosh
2010-09-12 19:42   ` Trond Myklebust
2010-09-13  9:50     ` Boaz Harrosh
2010-09-13 12:16       ` Fred Isaman
2010-09-13 12:45         ` Boaz Harrosh [this message]
2010-09-12 17:05 ` [RFC 2/3] SQUASHME: fileslayout: Adjust to device_cache API changes Boaz Harrosh
2010-09-12 17:06 ` [RFC 3/3] SQUASHME: pnfs-obj: Use the generic device cache Boaz Harrosh
2010-09-12 17:31   ` Boaz Harrosh

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=4C8E1CD9.1040404@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=andros@netapp.com \
    --cc=bhalevy@panasas.com \
    --cc=iisaman@netapp.com \
    --cc=linux-nfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox