drbd: use DEFINE_SPINLOCK() for spinlock
authorGuobin Huang <huangguobin4@huawei.com>
Tue, 6 Apr 2021 12:09:48 +0000 (20:09 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Apr 2021 15:31:42 +0000 (09:31 -0600)
commit9c282c29a3aee7d439ea871bd21a3e58bc37175e
tree5292d63b960e26a4d13fb1fde43085804e516235
parentb60b270b3db617811e593db5d5920ed98e67ce49
drbd: 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>
Link: https://lore.kernel.org/r/1617710988-49205-1-git-send-email-huangguobin4@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c