scsi: virtio_scsi: Use complete() instead complete_all()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 13 Sep 2016 08:58:50 +0000 (10:58 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 17:19:57 +0000 (13:19 -0400)
commite8f814202597e7416f6633793ec947d66b611895
treeb8b22fcabe34a9bc90a1c438d86b129e498cbda2
parentba2f1293e95f071156f5a6660fb2316d4ea15c46
scsi: virtio_scsi: Use complete() instead complete_all()

There is only one waiter for the completion, therefore there is no need
to use complete_all(). Let's make that clear by using complete() instead
of complete_all().

The usage pattern of the completion is:

waiter context                          waker context

virtscsi_tmf()
  DECLARE_COMPLETION_ONSTACK()
  virtscsi_kick_cmd()
  wait_for_completion()

                                        virtscsi_complete_free()
                                          complete()

Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/virtio_scsi.c