diff options
| author | 2025-10-21 23:42:37 -0400 | |
|---|---|---|
| committer | 2025-10-22 15:21:51 +0200 | |
| commit | 37d0472c8ac441af8bc10fc4959ad9d62dd5fa4c (patch) | |
| tree | 926feb9ceedafb7e81f2ead64111bf6ba5a023a0 /net/openvswitch/ssh:/git@git.zx2c4.com | |
| parent | seqlock: Change do_io_accounting() to use scoped_seqlock_read() (diff) | |
rust: debugfs: Implement Reader for Mutex<T> only when T is Unpin
Since we are going to make `Mutex<T>` structurally pin the data (i.e.
`T`), therefore `.lock()` function only returns a `Guard` that can
dereference a mutable reference to `T` if only `T` is `Unpin`, therefore
restrict the impl `Reader` block of `Mutex<T>` to that.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20251022034237.70431-1-boqun.feng@gmail.com
Diffstat (limited to 'net/openvswitch/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
