Skip to content
Snippets Groups Projects
  1. Feb 27, 2019
  2. Feb 06, 2019
  3. Dec 19, 2018
  4. Nov 07, 2018
  5. Oct 11, 2018
    • Avri Altman's avatar
      scsi: ufs: Add a bsg endpoint that supports UPIUs · df032bf2
      Avri Altman authored
      
      For now, just provide an API to allocate and remove ufs-bsg node. We
      will use this framework to manage ufs devices by sending UPIU
      transactions.
      
      For the time being, implements an empty bsg_request() - will add some
      more functionality in coming patches.
      
      Nonetheless, we reveal here the protocol we are planning to use: UFS
      Transport Protocol Transactions. UFS transactions consist of packets
      called UFS Protocol Information Units (UPIU).
      
      There are UPIU’s defined for UFS SCSI commands, responses, data in and
      data out, task management, utility functions, vendor functions,
      transaction synchronization and control, and more.
      
      By using UPIUs, we get access to the most fine-grained internals of this
      protocol, and able to communicate with the device in ways, that are
      sometimes beyond the capacity of the ufs driver.
      
      Moreover and as a result, our core structure - ufs_bsg_node has a pretty
      lean structure: using upiu transactions that contains the outmost
      detailed info, so we don't really need complex constructs to support it.
      
      Signed-off-by: default avatarAvri Altman <avri.altman@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarBart Van Assche <Bart.VanAssche@wdc.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      df032bf2
  6. Sep 09, 2018
    • Henrik Austad's avatar
      Drop all 00-INDEX files from Documentation/ · a7ddcea5
      Henrik Austad authored
      
      This is a respin with a wider audience (all that get_maintainer returned)
      and I know this spams a *lot* of people. Not sure what would be the correct
      way, so my apologies for ruining your inbox.
      
      The 00-INDEX files are supposed to give a summary of all files present
      in a directory, but these files are horribly out of date and their
      usefulness is brought into question. Often a simple "ls" would reveal
      the same information as the filenames are generally quite descriptive as
      a short introduction to what the file covers (it should not surprise
      anyone what Documentation/sched/sched-design-CFS.txt covers)
      
      A few years back it was mentioned that these files were no longer really
      needed, and they have since then grown further out of date, so perhaps
      it is time to just throw them out.
      
      A short status yields the following _outdated_ 00-INDEX files, first
      counter is files listed in 00-INDEX but missing in the directory, last
      is files present but not listed in 00-INDEX.
      
      List of outdated 00-INDEX:
      Documentation: (4/10)
      Documentation/sysctl: (0/1)
      Documentation/timers: (1/0)
      Documentation/blockdev: (3/1)
      Documentation/w1/slaves: (0/1)
      Documentation/locking: (0/1)
      Documentation/devicetree: (0/5)
      Documentation/power: (1/1)
      Documentation/powerpc: (0/5)
      Documentation/arm: (1/0)
      Documentation/x86: (0/9)
      Documentation/x86/x86_64: (1/1)
      Documentation/scsi: (4/4)
      Documentation/filesystems: (2/9)
      Documentation/filesystems/nfs: (0/2)
      Documentation/cgroup-v1: (0/2)
      Documentation/kbuild: (0/4)
      Documentation/spi: (1/0)
      Documentation/virtual/kvm: (1/0)
      Documentation/scheduler: (0/2)
      Documentation/fb: (0/1)
      Documentation/block: (0/1)
      Documentation/networking: (6/37)
      Documentation/vm: (1/3)
      
      Then there are 364 subdirectories in Documentation/ with several files that
      are missing 00-INDEX alltogether (and another 120 with a single file and no
      00-INDEX).
      
      I don't really have an opinion to whether or not we /should/ have 00-INDEX,
      but the above 00-INDEX should either be removed or be kept up to date. If
      we should keep the files, I can try to keep them updated, but I rather not
      if we just want to delete them anyway.
      
      As a starting point, remove all index-files and references to 00-INDEX and
      see where the discussion is going.
      
      Signed-off-by: default avatarHenrik Austad <henrik@austad.us>
      Acked-by: default avatar"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
      Just-do-it-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
      Acked-by: default avatarPaul Moore <paul@paul-moore.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarMark Brown <broonie@kernel.org>
      Acked-by: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
      Cc: [Almost everybody else]
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      a7ddcea5
  7. Aug 27, 2018
  8. May 29, 2018
  9. Mar 21, 2018
  10. Mar 20, 2018
  11. Mar 15, 2018
  12. Mar 02, 2018
  13. Dec 02, 2017
  14. Oct 23, 2017
  15. Apr 06, 2017
  16. Feb 28, 2017
  17. Dec 08, 2016
  18. Oct 24, 2016
  19. Sep 30, 2016
  20. Sep 27, 2016
  21. Sep 06, 2016
  22. Sep 02, 2016
  23. Aug 31, 2016
  24. Jun 09, 2016
    • Wei Fang's avatar
      scsi: fix race between simultaneous decrements of ->host_failed · 72d8c36e
      Wei Fang authored
      
      sas_ata_strategy_handler() adds the works of the ata error handler to
      system_unbound_wq. This workqueue asynchronously runs work items, so the
      ata error handler will be performed concurrently on different CPUs. In
      this case, ->host_failed will be decreased simultaneously in
      scsi_eh_finish_cmd() on different CPUs, and become abnormal.
      
      It will lead to permanently inequality between ->host_failed and
      ->host_busy, and scsi error handler thread won't start running. IO
      errors after that won't be handled.
      
      Since all scmds must have been handled in the strategy handler, just
      remove the decrement in scsi_eh_finish_cmd() and zero ->host_busy after
      the strategy handler to fix this race.
      
      Fixes: 50824d6c ("[SCSI] libsas: async ata-eh")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarWei Fang <fangwei1@huawei.com>
      Reviewed-by: default avatarJames Bottomley <jejb@linux.vnet.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      72d8c36e
  25. May 10, 2016
  26. Apr 28, 2016
Loading