Skip to content

Commit

Permalink
Staging: hv: Use the newly introduced I/O drain synch method
Browse files Browse the repository at this point in the history
Use the newly introduced I/O drain synch method.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent 604df37 commit 19fc2f2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/staging/hv/storvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,8 @@ int storvsc_dev_remove(struct hv_device *device)
* only allow inbound traffic (responses) to proceed so that
* outstanding requests can be completed.
*/
while (atomic_read(&stor_device->num_outstanding_req)) {
DPRINT_INFO(STORVSC, "waiting for %d requests to complete...",
atomic_read(&stor_device->num_outstanding_req));
udelay(100);
}

storvsc_wait_to_drain(stor_device);

DPRINT_INFO(STORVSC, "removing storage device (%p)...",
device->ext);
Expand Down

0 comments on commit 19fc2f2

Please sign in to comment.