From ad19e5086bf4c133fd82db918012ef847ac6b759 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Sat, 27 Aug 2011 11:31:04 -0700 Subject: [PATCH] --- yaml --- r: 268035 b: refs/heads/master c: df977d6c90632b3868055862262529007019d4ef h: refs/heads/master i: 268033: 140b2fbf9b8190990f2507d52fd1e90963b99783 268031: 5af5175deabd00a2b803e1f82aac3dd62d79ce61 v: v3 --- [refs] | 2 +- trunk/drivers/staging/hv/storvsc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ec1f4e4e0ba4..028b7849a993 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1eaaddf93853b222a08ec37d4d8c4edc1085d312 +refs/heads/master: df977d6c90632b3868055862262529007019d4ef diff --git a/trunk/drivers/staging/hv/storvsc.c b/trunk/drivers/staging/hv/storvsc.c index 313a3f8cfaf3..48bd8dae02e3 100644 --- a/trunk/drivers/staging/hv/storvsc.c +++ b/trunk/drivers/staging/hv/storvsc.c @@ -42,7 +42,7 @@ static inline struct storvsc_device *alloc_stor_device(struct hv_device *device) /* Set to 2 to allow both inbound and outbound traffics */ /* (ie get_out_stor_device() and get_in_stor_device()) to proceed. */ - atomic_cmpxchg(&stor_device->ref_count, 0, 2); + atomic_set(&stor_device->ref_count, 2); init_waitqueue_head(&stor_device->waiting_to_drain); stor_device->device = device;