Re: [PATCH 4.19 13/47] afs: Fix uninitialised spinlock afs_volume::cb_break_lock

2019-07-19 Thread Pavel Machek
Hi! > Without this, the following trace may be observed when a volume-break > callback is received: > > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. I'm sure this fixes the warning... > diff --git a/fs/afs/callback.c b/fs/afs/callback.c > index 5

[PATCH 4.19 13/47] afs: Fix uninitialised spinlock afs_volume::cb_break_lock

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 90fa9b64523a645a97edc0bdcf2d74759957 ] Fix the cb_break_lock spinlock in afs_volume struct by initialising it when the volume record is allocated. Also rename the lock to cb_v_break_lock to distinguish it from the lock of the same name in the afs_server struct. Without this