]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Use DEFINE_SPINLOCK() for spinlock
authorGuobin Huang <huangguobin4@huawei.com>
Tue, 6 Apr 2021 12:08:18 +0000 (20:08 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 6 Apr 2021 15:27:38 +0000 (11:27 -0400)
commite8cbb795c0b41cdae5da9af4d21c3940dd5f4f48
tree6d5544e42c440bda048761da81661f23065bd9ee
parent89e41927ae22265db89741f2768d1f022177fbd7
NFSD: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guobin Huang <huangguobin4@huawei.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfssvc.c