scsi: sym53c8xx_2: Use complete() instead complete_all()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 13 Sep 2016 08:58:49 +0000 (10:58 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 17:19:29 +0000 (13:19 -0400)
commitba2f1293e95f071156f5a6660fb2316d4ea15c46
treeb62e33fcbb5cb54173401d6acb6be4133a47fd91
parent3e3f5a8a0f03e5af8a243f6b04cb007068481358
scsi: sym53c8xx_2: 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

sym_eh_handler()
  struct completion eh_done
  init_completion(eh_done)
  pci_channel_offline()
  wait_for_completion_timeout(eh_done)

                                        sym2_io_resume()
                                          complete(eh_done)

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/sym53c8xx_2/sym_glue.c