Skip to content
  1. Nov 18, 2021
  2. Nov 07, 2021
  3. Nov 06, 2021
  4. Nov 05, 2021
  5. Nov 03, 2021
    • Jonathan Corbet's avatar
      nfs: remove unused header <linux/pnfs_osd_xdr.h> · 4330fe35
      Jonathan Corbet authored
      Commit 19fcae3d
      
       ("scsi: remove the SCSI OSD library") deleted the last
      file that included <linux/pnfs_osd_xdr.h> but left that file behind.  It's
      unused, get rid of it now.
      
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
      Cc: Anna Schumaker <anna.schumaker@netapp.com>
      Cc: linux-nfs@vger.kernel.org
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
      4330fe35
    • Scott Mayhew's avatar
      nfs4: take a reference on the nfs_client when running FREE_STATEID · 576acc25
      Scott Mayhew authored
      
      
      During umount, the session slot tables are freed.  If there are
      outstanding FREE_STATEID tasks, a use-after-free and slab corruption can
      occur when rpc_exit_task calls rpc_call_done -> nfs41_sequence_done ->
      nfs4_sequence_process/nfs41_sequence_free_slot.
      
      Prevent that from happening by taking a reference on the nfs_client in
      nfs41_free_stateid and putting it in nfs41_free_stateid_release.
      
      Signed-off-by: default avatarScott Mayhew <smayhew@redhat.com>
      Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
      576acc25
    • Dave Wysochanski's avatar
      NFS: Add offset to nfs_aop_readahead tracepoint · edfa0b16
      Dave Wysochanski authored
      
      
      Add the byte offset of the readahead request to the tracepoint output
      so we know where the read starts.
      
      Before this patch:
      cat-8104    [002] .....   813.168775: nfs_aop_readahead: fileid=00:31:141 fhandle=0xe55807f6 version=1756509392533525500 nr_pages=256
      cat-8104    [002] .....   813.174973: nfs_aop_readahead_done: fileid=00:31:141 fhandle=0xe55807f6 version=1756509392533525500 nr_pages=256 ret=0
      cat-8104    [002] .....   813.175963: nfs_aop_readahead: fileid=00:31:141 fhandle=0xe55807f6 version=1756509392533525500 nr_pages=256
      cat-8104    [002] .....   813.183742: nfs_aop_readahead_done: fileid=00:31:141 fhandle=0xe55807f6 version=1756509392533525500 nr_pages=1 ret=0
      
      After this patch:
      cat-6392    [001] .....    73.107782: nfs_aop_readahead: fileid=00:31:141 fhandle=0xed22403f version=1756511950029502774 offset=5242880 nr_pages=256
      cat-6392    [001] .....    73.112466: nfs_aop_readahead_done: fileid=00:31:141 fhandle=0xed22403f version=1756511950029502774 nr_pages=256 ret=0
      cat-6392    [001] .....    73.115692: nfs_aop_readahead: fileid=00:31:141 fhandle=0xed22403f version=1756511950029502774 offset=6291456 nr_pages=256
      cat-6392    [001] .....    73.123283: nfs_aop_readahead_done: fileid=00:31:141 fhandle=0xed22403f version=1756511950029502774 nr_pages=256 ret=0
      
      Signed-off-by: default avatarDave Wysochanski <dwysocha@redhat.com>
      Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
      edfa0b16