From: akpm@linux-foundation.org
To: Anna.Schumaker@Netapp.com, axboe@kernel.dk, chao@kernel.org,
david@fromorbit.com, djwong@kernel.org, hch@lst.de,
idryomov@gmail.com, jaegeuk@kernel.org, jlayton@kernel.org,
konishi.ryusuke@gmail.com, lars.ellenberg@linbit.com,
miklos@szeredi.hu, mm-commits@vger.kernel.org, neilb@suse.de,
paolo.valente@linaro.org, philipp.reisner@linbit.com,
trond.myklebust@hammerspace.com
Subject: + cephfs-dont-set-clear-bdi_congestion.patch added to -mm tree
Date: Thu, 27 Jan 2022 14:42:54 -0800 [thread overview]
Message-ID: <20220127224254.JOYAM9eDg%akpm@linux-foundation.org> (raw)
The patch titled
Subject: cephfs: don't set/clear bdi_congestion
has been added to the -mm tree. Its filename is
cephfs-dont-set-clear-bdi_congestion.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/cephfs-dont-set-clear-bdi_congestion.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/cephfs-dont-set-clear-bdi_congestion.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: NeilBrown <neilb@suse.de>
Subject: cephfs: don't set/clear bdi_congestion
The bdi congestion framework is no-longer used - writeback uses other
mechanisms to manage throughput.
So remove calls to set_bdi_congested() and clear_bdi_congested(), and
remove the writeback_count which is used only to guide the setting and
clearing.
The congestion_kb mount option is no longer meaningful, but as it is
visible to user-space, removing it needs more consideration.
Link: https://lkml.kernel.org/r/164325158958.29787.8840004338500709466.stgit@noble.brown
Signed-off-by: NeilBrown <neilb@suse.de>
Cc: Anna Schumaker <Anna.Schumaker@Netapp.com>
Cc: Chao Yu <chao@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Ilya Dryomov <idryomov@gmail.com>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ceph/addr.c | 27 ---------------------------
fs/ceph/super.c | 2 --
fs/ceph/super.h | 2 --
3 files changed, 31 deletions(-)
--- a/fs/ceph/addr.c~cephfs-dont-set-clear-bdi_congestion
+++ a/fs/ceph/addr.c
@@ -57,11 +57,6 @@
* accounting is preserved.
*/
-#define CONGESTION_ON_THRESH(congestion_kb) (congestion_kb >> (PAGE_SHIFT-10))
-#define CONGESTION_OFF_THRESH(congestion_kb) \
- (CONGESTION_ON_THRESH(congestion_kb) - \
- (CONGESTION_ON_THRESH(congestion_kb) >> 2))
-
static int ceph_netfs_check_write_begin(struct file *file, loff_t pos, unsigned int len,
struct folio *folio, void **_fsdata);
@@ -561,10 +556,6 @@ static int writepage_nounlock(struct pag
dout("writepage %p page %p index %lu on %llu~%llu snapc %p seq %lld\n",
inode, page, page->index, page_off, len, snapc, snapc->seq);
- if (atomic_long_inc_return(&fsc->writeback_count) >
- CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb))
- set_bdi_congested(inode_to_bdi(inode), BLK_RW_ASYNC);
-
req = ceph_osdc_new_request(osdc, &ci->i_layout, ceph_vino(inode), page_off, &len, 0, 1,
CEPH_OSD_OP_WRITE, CEPH_OSD_FLAG_WRITE, snapc,
ceph_wbc.truncate_seq, ceph_wbc.truncate_size,
@@ -621,10 +612,6 @@ static int writepage_nounlock(struct pag
ceph_put_wrbuffer_cap_refs(ci, 1, snapc);
ceph_put_snap_context(snapc); /* page's reference */
- if (atomic_long_dec_return(&fsc->writeback_count) <
- CONGESTION_OFF_THRESH(fsc->mount_options->congestion_kb))
- clear_bdi_congested(inode_to_bdi(inode), BLK_RW_ASYNC);
-
return err;
}
@@ -704,12 +691,6 @@ static void writepages_finish(struct cep
BUG_ON(!page);
WARN_ON(!PageUptodate(page));
- if (atomic_long_dec_return(&fsc->writeback_count) <
- CONGESTION_OFF_THRESH(
- fsc->mount_options->congestion_kb))
- clear_bdi_congested(inode_to_bdi(inode),
- BLK_RW_ASYNC);
-
ceph_put_snap_context(detach_page_private(page));
end_page_writeback(page);
dout("unlocking %p\n", page);
@@ -952,14 +933,6 @@ get_more_pages:
dout("%p will write page %p idx %lu\n",
inode, page, page->index);
- if (atomic_long_inc_return(&fsc->writeback_count) >
- CONGESTION_ON_THRESH(
- fsc->mount_options->congestion_kb)) {
- set_bdi_congested(inode_to_bdi(inode),
- BLK_RW_ASYNC);
- }
-
-
pages[locked_pages++] = page;
pvec.pages[i] = NULL;
--- a/fs/ceph/super.c~cephfs-dont-set-clear-bdi_congestion
+++ a/fs/ceph/super.c
@@ -801,8 +801,6 @@ static struct ceph_fs_client *create_fs_
fsc->filp_gen = 1;
fsc->have_copy_from2 = true;
- atomic_long_set(&fsc->writeback_count, 0);
-
err = -ENOMEM;
/*
* The number of concurrent works can be high but they don't need
--- a/fs/ceph/super.h~cephfs-dont-set-clear-bdi_congestion
+++ a/fs/ceph/super.h
@@ -120,8 +120,6 @@ struct ceph_fs_client {
struct ceph_mds_client *mdsc;
- atomic_long_t writeback_count;
-
struct workqueue_struct *inode_wq;
struct workqueue_struct *cap_wq;
_
Patches currently in -mm which might be from neilb@suse.de are
remove-inode_congested.patch
remove-bdi_congested-and-wb_congested-and-related-functions.patch
f2fs-change-retry-waiting-for-f2fs_write_single_data_page.patch
f2f2-replace-some-congestion_wait-calls-with-io_schedule_timeout.patch
cephfs-dont-set-clear-bdi_congestion.patch
fuse-dont-set-clear-bdi_congested.patch
nfs-remove-congestion-control.patch
block-bfq-ioschedc-use-false-rather-than-blk_rw_async.patch
remove-congestion-tracking-framework.patch
mm-discard-__gfp_atomic.patch
reply other threads:[~2022-01-27 22:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220127224254.JOYAM9eDg%akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Anna.Schumaker@Netapp.com \
--cc=axboe@kernel.dk \
--cc=chao@kernel.org \
--cc=david@fromorbit.com \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=idryomov@gmail.com \
--cc=jaegeuk@kernel.org \
--cc=jlayton@kernel.org \
--cc=konishi.ryusuke@gmail.com \
--cc=lars.ellenberg@linbit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=mm-commits@vger.kernel.org \
--cc=neilb@suse.de \
--cc=paolo.valente@linaro.org \
--cc=philipp.reisner@linbit.com \
--cc=trond.myklebust@hammerspace.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox