]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfs: Record contention stats for writeback lock
authorDavid Howells <dhowells@redhat.com>
Fri, 31 May 2024 14:48:29 +0000 (15:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 5 Sep 2024 09:00:41 +0000 (11:00 +0200)
commitef966d73fb7cab5736407998a4ae42577bb34a3b
tree21c8fdbd665898a85ce68f2b3450e1ea61b8ef89
parent43ebbf939340586c504cea7d4991b0af95724603
netfs: Record contention stats for writeback lock

Record statistics for contention upon the writeback serialisation lock that
prevents racing writeback calls from causing each other to interleave their
writebacks.  These can be viewed in /proc/fs/netfs/stats on the WbLock line,
with skip=N indicating the number of non-SYNC writebacks skipped and wait=N
indicating the number of SYNC writebacks that waited.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: Steve French <sfrench@samba.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20240814203850.2240469-5-dhowells@redhat.com/
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/netfs/internal.h
fs/netfs/stats.c
fs/netfs/write_issue.c