Skip to contentSkip to conversation

blkcache: include the hardware partition in the cache key

PATCH Tom Rini 1 participant 1 message Aug 26 1 message not in the archive

lore
Share & tools
lore

Tom Rini

author
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Daniel Golle

The block cache keys its entries on (iftype, devnum, start, blkcnt, blksz) but not on the block descriptor's hardware partition. Devices that expose several independent address spaces through blk_desc->hwpart therefore alias each other in the cache: once a block has been cached for one hwpart, reads of the same LBA on another hwpart return the data cached for the first one.

[...]

Applied to u-boot/next, thanks!

[1/1] blkcache: include the hardware partition in the cache key

      commit: 65965f4669490f81b0d03fd0db42328002b089ff
Signature · 1 line
Tom