netfs: Make netfs_io_request::subreq_counter an atomic_t
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Mar 2024 17:15:57 +0000 (17:15 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 29 Apr 2024 14:01:43 +0000 (15:01 +0100)
commit93bf1cc0096fa1e02244078db3334ca7fa1d88c1
tree04f622dbcd718b02836646d53de1f5e8afd3fd4e
parentae678317b95e760607c7b20b97c9cd4ca9ed6e1a
netfs: Make netfs_io_request::subreq_counter an atomic_t

Make the netfs_io_request::subreq_counter, used to generate values for
netfs_io_subrequest::debug_index, into an atomic_t so that it can be called
from the retry thread at the same time as the app thread issuing writes.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
fs/netfs/output.c
include/linux/netfs.h