diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-06-30 10:12:45 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:42 -0400 |
commit | 52fbb7c859788bb10dc0f1527eedf80fd11ec9ec (patch) | |
tree | 64fd8481a17957aeec734045ce3f1d67bb5e7e3c | |
parent | 042a1f268e82678ea202390b8a69457aafacd4a0 (diff) |
bcachefs: Don't cap ios in dio write path at 2 MB
It appears this was erronious, a different bug was responsible
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fs-io.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index f893bef34217..d379581c2517 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -1797,22 +1797,12 @@ static long bch2_dio_write_loop(struct dio_write *dio) goto loop; while (1) { - size_t extra = dio->iter.count - - min(BIO_MAX_VECS * PAGE_SIZE, dio->iter.count); - if (kthread) kthread_use_mm(dio->mm); BUG_ON(current->faults_disabled_mapping); current->faults_disabled_mapping = mapping; - /* - * Don't issue more than 2MB at once, the bcachefs io path in - * io.c can't bounce more than that: - */ - - dio->iter.count -= extra; ret = bio_iov_iter_get_pages(bio, &dio->iter); - dio->iter.count += extra; current->faults_disabled_mapping = NULL; if (kthread) |