diff options
author | Miquel Raynal <[email protected]> | 2023-07-31 11:09:03 +0200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2023-08-04 09:01:56 +0200 |
commit | 264725e35fbc3b67e053a405e022393a6017e6da (patch) | |
tree | f9cb1a4bc3dd79f9cb3d55cb871043e60cc9e4be /tools/perf/scripts/python/Perf-Trace-Util | |
parent | e9714c22c1a8238a85d069b1517941fc723312f7 (diff) |
mtd: Clean refcounting with MTD_PARTITIONED_MASTER
The logic is way too convoluted, let's clean the kref_get/put section to
clarify what this block does when using CONFIG_MTD_PARTITIONED_MASTER:
- Iterate through all the parent mtd devices
- Grab a reference over them all but the master
- Only grab the master whith CONFIG_MTD_PARTITIONED_MASTER
Same logic must apply in the put path, otherwise it would be broken.
Cc: Tomas Winkler <[email protected]>
Cc: Alexander Usyskin <[email protected]>
Cc: Zhang Xiaoxu <[email protected]>
Fixes: 19bfa9ebebb5 ("mtd: use refcount to prevent corruption")
Signed-off-by: Miquel Raynal <[email protected]>
Tested-by: Alexander Usyskin <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions