Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip client fsync #4778

Merged
merged 4 commits into from Jun 5, 2015
Merged

Wip client fsync #4778

merged 4 commits into from Jun 5, 2015

Commits on May 29, 2015

  1. client: don't update flushing_cap_seq when there are flushing caps

    Current code always updates flushing_cap_seq when marking dirty
    caps as flushing. If there are old flushing caps, updating
    flushing_cap_seq confuses Client::wait_sync_caps(uint64_t), make
    it think that the old caps have been flushed.
    
    Signed-off-by: Yan, Zheng <zyan@redhat.com>
    ukernel committed May 29, 2015
    Configuration menu
    Copy the full SHA
    6bb9e15 View commit details
    Browse the repository at this point in the history
  2. client: make fsync waits for single inode's flushing caps

    Client::_fsync() calls Client::wait_sync_caps(uint64_t), which
    waits for all inodes' flush caps. It's suboptimal, this patch
    makes Client::_fsync() wait for flushing caps which belong to
    the fsync inode.
    
    Signed-off-by: Yan, Zheng <zyan@redhat.com>
    ukernel committed May 29, 2015
    Configuration menu
    Copy the full SHA
    ce27ae4 View commit details
    Browse the repository at this point in the history
  3. client: make fsync wait for unsafe directory operations

    Signed-off-by: Yan, Zheng <zyan@redhat.com>
    ukernel committed May 29, 2015
    Configuration menu
    Copy the full SHA
    6883b82 View commit details
    Browse the repository at this point in the history
  4. client: start flushing dirty caps in Client::_fsync()

    Client::flush_caps(Inode *, MetaSession *) does not start flushing
    dirty caps. It only re-send caps message for caps that are already
    being flushed.
    
    Signed-off-by: Yan, Zheng <zyan@redhat.com>
    ukernel committed May 29, 2015
    Configuration menu
    Copy the full SHA
    b20ea43 View commit details
    Browse the repository at this point in the history