diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-07 12:00:56 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-14 21:02:16 -0400 |
| commit | 4b0fac4bed0797c33e0852312e1dbe11baa3fb01 (patch) | |
| tree | 4501a2a2bb74bf04c153d7afb2fbb0d951f62394 /fs/bcachefs/journal_io.c | |
| parent | bcachefs: Kick devices out after too many write IO errors (diff) | |
| download | linux-4b0fac4bed0797c33e0852312e1dbe11baa3fb01.tar.gz linux-4b0fac4bed0797c33e0852312e1dbe11baa3fb01.zip | |
bcachefs: journal write path comment
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
| -rw-r--r-- | fs/bcachefs/journal_io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index a510755a8364..331c9d762439 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -1813,6 +1813,10 @@ static CLOSURE_CALLBACK(journal_write_preflush) struct journal *j = container_of(w, struct journal, buf[w->idx]); struct bch_fs *c = container_of(j, struct bch_fs, journal); + /* + * Wait for previous journal writes to comelete; they won't necessarily + * be flushed if they're still in flight + */ if (j->seq_ondisk + 1 != le64_to_cpu(w->data->seq)) { spin_lock(&j->lock); if (j->seq_ondisk + 1 != le64_to_cpu(w->data->seq)) { |
