]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: "Journal stuck" timeout now takes into account device latency
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 21 Jan 2025 22:42:25 +0000 (17:42 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 21 Jan 2025 23:32:05 +0000 (18:32 -0500)
commit2c5d8a8347a8ea8c243245e2ed8d87dfbf9f54fb
treee6f98cc208966943bf1ae10fcaa0e3e2f0399712
parentf917016f69ba5a0c42a3a3327792707315f2a937
bcachefs: "Journal stuck" timeout now takes into account device latency

If a block device (e.g. your typical consumer SSD) is taking multiple
seconds for IOs (typically flushes), we don't want to emit the "journal
stuck" message prematurely.

Also, make sure to drop the btree_trans srcu lock if we're blocking for
more than a second.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_trans_commit.c
fs/bcachefs/journal.c
fs/bcachefs/journal.h