2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/drivers/scsi/sym53c8xx_2
Daniel Wagner ba2f1293e9 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>
2016-09-14 13:19:29 -04:00
..
Makefile
sym53c8xx.h
sym_defs.h
sym_fw1.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_fw2.h Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_fw.c
sym_fw.h
sym_glue.c scsi: sym53c8xx_2: Use complete() instead complete_all() 2016-09-14 13:19:29 -04:00
sym_glue.h treewide: Fix common typo in "identify" 2013-10-14 15:31:06 +02:00
sym_hipd.c sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue 2014-04-12 18:02:16 -07:00
sym_hipd.h scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
sym_malloc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
sym_misc.h
sym_nvram.c
sym_nvram.h