diff options
| author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2025-11-22 16:40:29 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-11-24 15:08:53 -0800 |
| commit | 1b1a4e4d6797a57fefa40569fc920ce573bbf75b (patch) | |
| tree | 542df6c128122cdbf2a7c5c0727d871a59f6d3e1 /tools/lib/python | |
| parent | e87ddea34567dd4e5cb1f2c9e02778485b3c9757 (diff) | |
zram: read slot block idx under slot lock
Read slot's block id under slot-lock. We release the slot-lock for bdev
read so, technically, slot still can get freed in the meantime, but at
least we will read bdev block (page) that holds previous know slot data,
not from slot->handle bdev block, which can be anything at that point.
Link: https://lkml.kernel.org/r/20251122074029.3948921-7-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Brian Geffon <bgeffon@google.com>
Cc: Minchan Kim <minchan@google.com>
Cc: Richard Chang <richardycc@google.com>
Cc: Yuwen Chen <ywen.chen@foxmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
