1. 23 3月, 2022 1 次提交
    • N
      ceph: remove reliance on bdi congestion · 503d4fa6
      NeilBrown 提交于
      The bdi congestion tracking in not widely used and will be removed.
      
      CEPHfs is one of a small number of filesystems that uses it, setting just
      the async (write) congestion flags at what it determines are appropriate
      times.
      
      The only remaining effect of the async flag is to cause (some)
      WB_SYNC_NONE writes to be skipped.
      
      So instead of setting the flag, set an internal flag and change:
      
       - .writepages to do nothing if WB_SYNC_NONE and the flag is set
      
       - .writepage to return AOP_WRITEPAGE_ACTIVATE if WB_SYNC_NONE and the
         flag is set.
      
      The writepages change causes a behavioural change in that pageout() can
      now return PAGE_ACTIVATE instead of PAGE_KEEP, so SetPageActive() will
      be called on the page which (I think) wil further delay the next attempt
      at writeout.  This might be a good thing.
      
      Link: https://lkml.kernel.org/r/164549983739.9187.14895675781408171186.stgit@noble.brownSigned-off-by: NNeilBrown <neilb@suse.de>
      Cc: Anna Schumaker <Anna.Schumaker@Netapp.com>
      Cc: Chao Yu <chao@kernel.org>
      Cc: Darrick J. Wong <djwong@kernel.org>
      Cc: Ilya Dryomov <idryomov@gmail.com>
      Cc: Jaegeuk Kim <jaegeuk@kernel.org>
      Cc: Jan Kara <jack@suse.cz>
      Cc: Jeff Layton <jlayton@kernel.org>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
      Cc: Miklos Szeredi <miklos@szeredi.hu>
      Cc: Paolo Valente <paolo.valente@linaro.org>
      Cc: Philipp Reisner <philipp.reisner@linbit.com>
      Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com>
      Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
      Cc: Wu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      503d4fa6
  2. 21 3月, 2022 1 次提交
  3. 15 3月, 2022 3 次提交
  4. 02 3月, 2022 3 次提交
  5. 22 1月, 2022 1 次提交
  6. 12 1月, 2022 3 次提交
  7. 11 11月, 2021 1 次提交
  8. 08 11月, 2021 2 次提交
  9. 03 9月, 2021 1 次提交
  10. 13 7月, 2021 1 次提交
    • J
      ceph: Fix race between hole punch and page fault · 057ba5b2
      Jan Kara 提交于
      Ceph has a following race between hole punching and page fault:
      
      CPU1                                  CPU2
      ceph_fallocate()
        ...
        ceph_zero_pagecache_range()
                                            ceph_filemap_fault()
                                              faults in page in the range being
                                              punched
        ceph_zero_objects()
      
      And now we have a page in punched range with invalid data. Fix the
      problem by using mapping->invalidate_lock similarly to other
      filesystems. Note that using invalidate_lock also fixes a similar race
      wrt ->readpage().
      
      CC: Jeff Layton <jlayton@kernel.org>
      CC: ceph-devel@vger.kernel.org
      Reviewed-by: NJeff Layton <jlayton@kernel.org>
      Signed-off-by: NJan Kara <jack@suse.cz>
      057ba5b2
  11. 29 6月, 2021 3 次提交
  12. 28 4月, 2021 10 次提交
  13. 16 2月, 2021 1 次提交
  14. 15 12月, 2020 2 次提交
  15. 12 10月, 2020 7 次提交