26 Dec, 2016

2 commits

  • No point in going through loops and hoops instead of just comparing the
    values.

    Signed-off-by: Thomas Gleixner
    Cc: Peter Zijlstra

    Thomas Gleixner
     
  • ktime is a union because the initial implementation stored the time in
    scalar nanoseconds on 64 bit machine and in a endianess optimized timespec
    variant for 32bit machines. The Y2038 cleanup removed the timespec variant
    and switched everything to scalar nanoseconds. The union remained, but
    become completely pointless.

    Get rid of the union and just keep ktime_t as simple typedef of type s64.

    The conversion was done with coccinelle and some manual mopping up.

    Signed-off-by: Thomas Gleixner
    Cc: Peter Zijlstra

    Thomas Gleixner
     

25 Dec, 2016

1 commit


22 Dec, 2016

1 commit

  • Pull more NFS client updates from Trond Myklebust:
    "Highlights include:

    - further attribute cache improvements to make revalidation more fine
    grained

    - NFSv4 locking improvements

    Bugfixes:

    - nfs4_fl_prepare_ds must be careful about reporting success in files
    layout

    - pNFS/flexfiles: Instead of marking a device inactive, remove it
    from the cache"

    * tag 'nfs-for-4.10-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
    NFSv4: Retry the DELEGRETURN if the embedded GETATTR is rejected with EACCES
    NFS: Retry the CLOSE if the embedded GETATTR is rejected with EACCES
    NFSv4: Place the GETATTR operation before the CLOSE
    NFSv4: Also ask for attributes when downgrading to a READ-only state
    NFS: Don't abuse NFS_INO_REVAL_FORCED in nfs_post_op_update_inode_locked()
    pNFS: Return RW layouts on OPEN_DOWNGRADE
    NFSv4: Add encode/decode of the layoutreturn op in OPEN_DOWNGRADE
    NFS: Don't disconnect open-owner on NFS4ERR_BAD_SEQID
    NFSv4: ensure __nfs4_find_lock_state returns consistent result.
    NFSv4.1: nfs4_fl_prepare_ds must be careful about reporting success.
    pNFS/flexfiles: delete deviceid, don't mark inactive
    NFS: Clean up nfs_attribute_timeout()
    NFS: Remove unused function nfs_revalidate_inode_rcu()
    NFS: Fix and clean up the access cache validity checking
    NFS: Only look at the change attribute cache state in nfs_weak_revalidate()
    NFS: Clean up cache validity checking
    NFS: Don't revalidate the file on close if we hold a delegation
    NFSv4: Don't discard the attributes returned by asynchronous DELEGRETURN
    NFSv4: Update the attribute cache info in update_changeattr

    Linus Torvalds
     

20 Dec, 2016

19 commits


18 Dec, 2016

2 commits

  • …/linux/kernel/git/mszeredi/vfs

    Pull partial readlink cleanups from Miklos Szeredi.

    This is the uncontroversial part of the readlink cleanup patch-set that
    simplifies the default readlink handling.

    Miklos and Al are still discussing the rest of the series.

    * git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
    vfs: make generic_readlink() static
    vfs: remove ".readlink = generic_readlink" assignments
    vfs: default to generic_readlink()
    vfs: replace calling i_op->readlink with vfs_readlink()
    proc/self: use generic_readlink
    ecryptfs: use vfs_get_link()
    bad_inode: add missing i_op initializers

    Linus Torvalds
     
  • Pull more vfs updates from Al Viro:
    "In this pile:

    - autofs-namespace series
    - dedupe stuff
    - more struct path constification"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (40 commits)
    ocfs2: implement the VFS clone_range, copy_range, and dedupe_range features
    ocfs2: charge quota for reflinked blocks
    ocfs2: fix bad pointer cast
    ocfs2: always unlock when completing dio writes
    ocfs2: don't eat io errors during _dio_end_io_write
    ocfs2: budget for extent tree splits when adding refcount flag
    ocfs2: prohibit refcounted swapfiles
    ocfs2: add newlines to some error messages
    ocfs2: convert inode refcount test to a helper
    simple_write_end(): don't zero in short copy into uptodate
    exofs: don't mess with simple_write_{begin,end}
    9p: saner ->write_end() on failing copy into non-uptodate page
    fix gfs2_stuffed_write_end() on short copies
    fix ceph_write_end()
    nfs_write_end(): fix handling of short copies
    vfs: refactor clone/dedupe_file_range common functions
    fs: try to clone files first in vfs_copy_file_range
    vfs: misc struct path constification
    namespace.c: constify struct path passed to a bunch of primitives
    quota: constify struct path in quota_on
    ...

    Linus Torvalds
     

16 Dec, 2016

1 commit

  • Pull NFS client updates from Trond Myklebust:
    "Highlights include:

    Stable bugfixes:
    - Fix a pnfs deadlock between read resends and layoutreturn
    - Don't invalidate the layout stateid while a layout return is
    outstanding
    - Don't schedule a layoutreturn if the layout stateid is marked as
    invalid
    - On a pNFS error, do not send LAYOUTGET until the LAYOUTRETURN is
    complete
    - SUNRPC: fix refcounting problems with auth_gss messages.

    Features:
    - Add client support for the NFSv4 umask attribute.
    - NFSv4: Correct support for flock() stateids.
    - Add a LAYOUTRETURN operation to CLOSE and DELEGRETURN when
    return-on-close is specified
    - Allow the pNFS/flexfiles layoutstat information to piggyback on
    LAYOUTRETURN
    - Optimise away redundant GETATTR calls when doing state recovery
    and/or when not required by cache revalidation rules or
    close-to-open cache consistency.
    - Attribute cache improvements
    - RPC/RDMA support for SG_GAP devices

    Bugfixes:
    - NFS: Fix performance regressions in readdir
    - pNFS/flexfiles: Fix a deadlock on LAYOUTGET
    - NFSv4: Add missing nfs_put_lock_context()
    - NFSv4.1: Fix regression in callback retry handling
    - Fix false positive NFSv4.0 trunking detection.
    - pNFS/flexfiles: Only send layoutstats updates for mirrors that were
    updated
    - Various layout stateid related bugfixes
    - RPC/RDMA bugfixes"

    * tag 'nfs-for-4.10-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (82 commits)
    SUNRPC: fix refcounting problems with auth_gss messages.
    nfs: add support for the umask attribute
    pNFS/flexfiles: Ensure we have enough buffer for layoutreturn
    pNFS/flexfiles: Remove a redundant parameter in ff_layout_encode_ioerr()
    pNFS/flexfiles: Fix a deadlock on LAYOUTGET
    pNFS: Layoutreturn must free the layout after the layout-private data
    pNFS/flexfiles: Fix ff_layout_add_ds_error_locked()
    NFSv4: Add missing nfs_put_lock_context()
    pNFS: Release NFS_LAYOUT_RETURN when invalidating the layout stateid
    NFSv4.1: Don't schedule lease recovery in nfs4_schedule_session_recovery()
    NFSv4.1: Handle NFS4ERR_BADSESSION/NFS4ERR_DEADSESSION replies to OP_SEQUENCE
    NFS: Only look at the change attribute cache state in nfs_check_verifier
    NFS: Fix incorrect size revalidation when holding a delegation
    NFS: Fix incorrect mapping revalidation when holding a delegation
    pNFS/flexfiles: Support sending layoutstats in layoutreturn
    pNFS/flexfiles: Minor refactoring before adding iostats to layoutreturn
    NFS: Fix up read of mirror stats
    pNFS/flexfiles: Clean up layoutstats
    pNFS/flexfiles: Refactor encoding of the layoutreturn payload
    pNFS: Add a layoutreturn callback to performa layout-private setup
    ...

    Linus Torvalds
     

10 Dec, 2016

4 commits


09 Dec, 2016

2 commits

  • If .readlink == NULL implies generic_readlink().

    Generated by:

    to_del="\.readlink.*=.*generic_readlink"
    for i in `git grep -l $to_del`; do sed -i "/$to_del"/d $i; done

    Signed-off-by: Miklos Szeredi

    Miklos Szeredi
     
  • We encountered a deadlock where the SEQUENCE that accompanied the
    LAYOUTGET triggered a session drain, while ff_layout_alloc_lseg
    triggered a GETDEVICEINFO. The GETDEVICEINFO hung waiting for the
    session drain, while the LAYOUTGET held the slot waiting for
    alloc_lseg to finish.
    Avoid this by moving the call to nfs4_find_get_deviceid out of
    ff_layout_alloc_lseg and into nfs4_ff_layout_prepare_ds.

    Signed-off-by: Fred Isaman
    [dros@primarydata.com: pNFS/flexfiles: fix races in ff_layout_mirror_valid]
    Signed-off-by: Weston Andros Adamson
    Signed-off-by: Trond Myklebust

    Fred Isaman
     

08 Dec, 2016

3 commits


06 Dec, 2016

1 commit


05 Dec, 2016

4 commits