summaryrefslogtreecommitdiff
path: root/fs/bcachefs/fs-io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-09-27 01:21:07 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:42 +0300
commit2d848dacb2a7b7b6766c43b1945351ef360f4344 (patch)
tree599c6b4dfdc40aa33effe1e60b858aec2636fbd8 /fs/bcachefs/fs-io.c
parent68b6cd194ab23d0696a9d7adb024eabca95d4920 (diff)
downloadlinux-2d848dacb2a7b7b6766c43b1945351ef360f4344.tar.xz
bcachefs: Kill io_in_flight semaphore
This used to be needed more for buffered IO, but now the block layer has writeback throttling - we can delete this now. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs-io.c')
-rw-r--r--fs/bcachefs/fs-io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c
index 73f5677cadce..3cb542f0d8c7 100644
--- a/fs/bcachefs/fs-io.c
+++ b/fs/bcachefs/fs-io.c
@@ -1214,8 +1214,6 @@ static void bch2_writepage_io_done(struct bch_write_op *op)
struct bio_vec *bvec;
unsigned i;
- up(&io->op.c->io_in_flight);
-
if (io->op.error) {
set_bit(EI_INODE_ERROR, &io->inode->ei_flags);
@@ -1278,8 +1276,6 @@ static void bch2_writepage_do_io(struct bch_writepage_state *w)
{
struct bch_writepage_io *io = w->io;
- down(&io->op.c->io_in_flight);
-
w->io = NULL;
closure_call(&io->op.cl, bch2_write, NULL, NULL);
}