1. 29 6月, 2018 1 次提交
    • L
      Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL · a11e1d43
      Linus Torvalds 提交于
      The poll() changes were not well thought out, and completely
      unexplained.  They also caused a huge performance regression, because
      "->poll()" was no longer a trivial file operation that just called down
      to the underlying file operations, but instead did at least two indirect
      calls.
      
      Indirect calls are sadly slow now with the Spectre mitigation, but the
      performance problem could at least be largely mitigated by changing the
      "->get_poll_head()" operation to just have a per-file-descriptor pointer
      to the poll head instead.  That gets rid of one of the new indirections.
      
      But that doesn't fix the new complexity that is completely unwarranted
      for the regular case.  The (undocumented) reason for the poll() changes
      was some alleged AIO poll race fixing, but we don't make the common case
      slower and more complex for some uncommon special case, so this all
      really needs way more explanations and most likely a fundamental
      redesign.
      
      [ This revert is a revert of about 30 different commits, not reverted
        individually because that would just be unnecessarily messy  - Linus ]
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a11e1d43
  2. 26 5月, 2018 1 次提交
  3. 28 11月, 2017 1 次提交
  4. 30 10月, 2017 1 次提交
  5. 02 9月, 2017 1 次提交
  6. 27 11月, 2016 1 次提交
  7. 20 9月, 2016 3 次提交
  8. 20 11月, 2015 4 次提交
  9. 26 10月, 2015 1 次提交
  10. 24 9月, 2015 1 次提交
  11. 18 9月, 2015 1 次提交
  12. 17 9月, 2015 1 次提交
  13. 09 6月, 2015 1 次提交
  14. 02 4月, 2015 1 次提交
    • J
      Bluetooth: Add second hci_request callback option for full skb · e6214487
      Johan Hedberg 提交于
      This patch adds a second possible callback for HCI requests where the
      callback will receive the full skb of the last successfully completed
      HCI command. This API is useful for cases where we want to use a request
      to read some data and the existing hci_event.c handlers do not store it
      e.g. in the hci_dev struct.
      
      The reason the patch is a bit bigger than just adding the new API is
      because the hci_req_cmd_complete() functions required some refactoring
      to enable it: now hci_req_cmd_complete() is simply used to request the
      callback pointers if any, and the actual calling of them happens from a
      single place at the end of hci_event_packet(). The reason for this is
      that we need to pass the original skb (without any skb_pull, etc
      modifications done to it) and it's simplest to keep track of it within
      the hci_event_packet() function.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      e6214487
  15. 31 3月, 2015 2 次提交
  16. 18 3月, 2015 1 次提交
  17. 15 3月, 2015 2 次提交
  18. 07 3月, 2015 1 次提交
  19. 03 3月, 2015 1 次提交
  20. 02 3月, 2015 2 次提交
  21. 12 1月, 2015 1 次提交
  22. 24 9月, 2014 1 次提交
  23. 15 9月, 2014 1 次提交
  24. 03 7月, 2014 1 次提交
  25. 13 2月, 2014 1 次提交
    • M
      Bluetooth: Introduce requirements for security level 4 · 7b5a9241
      Marcel Holtmann 提交于
      The security level 4 is a new strong security requirement that is based
      around 128-bit equivalent strength for link and encryption keys required
      using FIPS approved algorithms. Which means that E0, SAFER+ and P-192
      are not allowed. Only connections created with P-256 resulting from
      using Secure Connections support are allowed.
      
      This security level needs to be enforced when Secure Connection Only
      mode is enabled for a controller or a service requires FIPS compliant
      strong security. Currently it is not possible to enable either of
      these two cases. This patch just puts in the foundation for being
      able to handle security level 4 in the future.
      
      It should be noted that devices or services with security level 4
      requirement can only communicate using Bluetooth 4.1 controllers
      with support for Secure Connections. There is no backward compatibilty
      if used with older hardware.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      7b5a9241
  26. 05 12月, 2013 1 次提交
  27. 22 10月, 2013 1 次提交
  28. 14 10月, 2013 3 次提交
  29. 02 10月, 2013 1 次提交
  30. 24 9月, 2013 1 次提交