1. 22 10月, 2021 2 次提交
    • C
      block: add a ->get_unique_id method · 9208d414
      Christoph Hellwig 提交于
      Add a method to query unique IDs from block devices.  It will be used to
      remove code that deeply pokes into SCSI internals in the NFS server.
      The implementation in the sd driver itself is also much nicer as it can
      use the cached VPD page instead of always sending a command as the
      current NFS code does.
      
      For now the interface is kept very minimal but could be easily
      extended when other users like a block-layer sysfs interface for
      uniquue IDs shows up.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NHannes Reinecke <hare@suse.de>
      Link: https://lore.kernel.org/r/20211021060607.264371-2-hch@lst.deSigned-off-by: NJens Axboe <axboe@kernel.dk>
      9208d414
    • E
      blk-crypto: rename blk_keyslot_manager to blk_crypto_profile · cb77cb5a
      Eric Biggers 提交于
      blk_keyslot_manager is misnamed because it doesn't necessarily manage
      keyslots.  It actually does several different things:
      
        - Contains the crypto capabilities of the device.
      
        - Provides functions to control the inline encryption hardware.
          Originally these were just for programming/evicting keyslots;
          however, new functionality (hardware-wrapped keys) will require new
          functions here which are unrelated to keyslots.  Moreover,
          device-mapper devices already (ab)use "keyslot_evict" to pass key
          eviction requests to their underlying devices even though
          device-mapper devices don't have any keyslots themselves (so it
          really should be "evict_key", not "keyslot_evict").
      
        - Sometimes (but not always!) it manages keyslots.  Originally it
          always did, but device-mapper devices don't have keyslots
          themselves, so they use a "passthrough keyslot manager" which
          doesn't actually manage keyslots.  This hack works, but the
          terminology is unnatural.  Also, some hardware doesn't have keyslots
          and thus also uses a "passthrough keyslot manager" (support for such
          hardware is yet to be upstreamed, but it will happen eventually).
      
      Let's stop having keyslot managers which don't actually manage keyslots.
      Instead, rename blk_keyslot_manager to blk_crypto_profile.
      
      This is a fairly big change, since for consistency it also has to update
      keyslot manager-related function names, variable names, and comments --
      not just the actual struct name.  However it's still a fairly
      straightforward change, as it doesn't change any actual functionality.
      
      Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
      Reviewed-by: NMike Snitzer <snitzer@redhat.com>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: NEric Biggers <ebiggers@google.com>
      Link: https://lore.kernel.org/r/20211018180453.40441-4-ebiggers@kernel.orgSigned-off-by: NJens Axboe <axboe@kernel.dk>
      cb77cb5a
  2. 20 10月, 2021 2 次提交
  3. 19 10月, 2021 4 次提交
  4. 18 10月, 2021 16 次提交
  5. 25 8月, 2021 1 次提交
  6. 24 8月, 2021 1 次提交
  7. 12 8月, 2021 1 次提交
  8. 10 8月, 2021 4 次提交
  9. 03 8月, 2021 2 次提交
  10. 31 7月, 2021 3 次提交
  11. 29 7月, 2021 4 次提交