Drivers: hv: rename sc_lock to the more generic lock
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 20 Jan 2015 15:45:05 +0000 (16:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 17:18:00 +0000 (09:18 -0800)
commit67fae053bfc6e84144150e4c6c62670abb215c33
treea3636a76dc94882f166e95e5ae49a9eed33c5081
parent9c3a6f7e476fc4961297fc66b1177f9f8c8dd238
Drivers: hv: rename sc_lock to the more generic lock

sc_lock spinlock in struct vmbus_channel is being used to not only protect the
sc_list field, e.g. vmbus_open() function uses it to implement test-and-set
access to the state field. Rename it to the more generic 'lock' and add the
description.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/channel_mgmt.c
include/linux/hyperv.h