fscrypt: rework keyring and stop using request_queue
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 0 repliesNew
- v33 patches 0 repliesSuperseded
- v22 patches 1 replySuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 0 replies | Superseded |
Changes in v4 from the cover letter
- Restored a NULL check in fscrypt_destroy_inline_crypt_key() that I had accidentally dropped.
- Tweaked patches 2 and 3 slightly so that patch 2 no longer makes as many changes that patch 3 then undoes.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | fscrypt: stop using keyrings subsystem for fscrypt_master_keyfs/ fs/ fs/ +5 more | +349 | 0 replies | |
| 2/3 | fscrypt: stop holding extra request_queue referencesfs/ fs/ fs/ +2 more | +64 | 0 replies | |
| 3/3 | fscrypt: work on block_devices instead of request_queuesfs/ fs/ include/ | +62 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/3] fscrypt: rework keyring and stop using request_queue
Patch 1 of this series reworks the fscrypt filesystem-level keyring to not use the keyrings subsystem as part of its internal implementation (except for ->mk_users, which remains unchanged for now). This fixes several issues, described in the patch itself. This is also a prerequisite for eliminating the direct use of struct request_queue from filesystem code, as discussed at
https://lore.kernel.org/linux-fscrypt/[email protected]/T/#u
Patches 2-3 eliminate the direct uses of struct request_queue from fs/crypto/ that don't require block layer changes. (The remaining uses will be eliminated later by changing some of the blk-crypto functions.)
Changed in v4:
- Restored a NULL check in fscrypt_destroy_inline_crypt_key() that I had accidentally dropped.
- Tweaked patches 2 and 3 slightly so that patch 2 no longer makes as many changes that patch 3 then undoes.
Changed in v3:
- Added patch "fscrypt: work on block_devices instead of request_queues"
Changed in v2:
- Don't compare uninitialized bytes of struct fscrypt_key_specifier
- Don't use refcount_dec_and_lock() unnecessarily
- Other minor cleanups
Christoph Hellwig (1):
fscrypt: work on block_devices instead of request_queues
Eric Biggers (2):
fscrypt: stop using keyrings subsystem for fscrypt_master_key
fscrypt: stop holding extra request_queue references
fs/crypto/fscrypt_private.h | 74 ++++-- fs/crypto/hooks.c | 10 +- fs/crypto/inline_crypt.c | 147 ++++++----- fs/crypto/keyring.c | 495 +++++++++++++++++++----------------- fs/crypto/keysetup.c | 89 +++---- fs/crypto/keysetup_v1.c | 4 +- fs/crypto/policy.c | 8 +- fs/f2fs/super.c | 24 +- fs/super.c | 2 +- include/linux/fs.h | 2 +- include/linux/fscrypt.h | 25 +- 11 files changed, 462 insertions(+), 418 deletions(-)
base-commit: 1c23f9e627a7b412978b4e852793c5e3c3efc555
Signature · 1 line
2.37.2