In case of NFSv3 ops (without extended ops), the owner of the fd closes at
the end of read/write call (look in fsal_rdwr). If there are parallel
reads/writes, they may share same fd (depends on timing of read/write lock).

On Thu, Feb 16, 2017 at 12:40 AM, Malahal Naineni <mala...@gmail.com> wrote:

> The only way for ganesha to close NFSv3 opens was with this fd count limit
> in an earlier release. Now, do we open for each NFSv3 read/write and close
> after the read/write?
>
> On Tue, Feb 14, 2017 at 12:51 AM, Frank Filz <ffilz...@mindspring.com>
> wrote:
>
>> Open fd tracking is an area Ganesha actually needs some additional work,
>> however, the tracking in the non-support_ex methods did not limit the
>> number of NFS v4 opens in any way, it just was used to manage how many fds
>> Ganesha kept open for I/O access to files.
>>
>>
>>
>> With support_ex, an fd is associated with each file clients have open
>> (NFS v4), and additional fds are (may) be used per file/lock owner pair.
>>
>>
>>
>> Ultimately we do need to have a limit on how much state (NFS v4 open,
>> NLM_SHARE, locks, delegations, layouts) is active.
>>
>>
>>
>> Frank
>>
>>
>>
>> *From:* Naresh Babu [mailto:snareshb...@gmail.com]
>> *Sent:* Saturday, February 11, 2017 4:21 PM
>> *To:* nfs-ganesha-devel@lists.sourceforge.net
>> *Subject:* [Nfs-ganesha-devel] how does ganesha limit number of FDs
>>
>>
>>
>> If a particular FSAL implements extended ops like
>> open2/write2/read2/commit2, open_fd_count doesn't get tracked. Then, how
>> does ganesha limit the number of open FDs? In general, what is the
>> rationale behind not tracking open fd count?
>>
>>
>>
>> Thanks,
>>
>> Naresh
>>
>>
>> ------------------------------
>> [image: Avast logo] <https://www.avast.com/antivirus>
>>
>> This email has been checked for viruses by Avast antivirus software.
>> www.avast.com <https://www.avast.com/antivirus>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Nfs-ganesha-devel mailing list
>> Nfs-ganesha-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to