aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorEugeniy Paltsev <[email protected]>2018-07-26 12:05:37 +0000
committerDavid S. Miller <[email protected]>2018-07-29 19:33:30 +0000
commit9939a46d90c6c76f4533d534dbadfa7b39dc6acc (patch)
treee8f9af52182bc85cf5af89556c393280320bb151 /fs/btrfs/dev-replace.c
parenttcp_bbr: fix bw probing to raise in-flight data for very small BDPs (diff)
downloadkernel-9939a46d90c6c76f4533d534dbadfa7b39dc6acc.tar.gz
kernel-9939a46d90c6c76f4533d534dbadfa7b39dc6acc.zip
NET: stmmac: align DMA stuff to largest cache line length
As for today STMMAC_ALIGN macro (which is used to align DMA stuff) relies on L1 line length (L1_CACHE_BYTES). This isn't correct in case of system with several cache levels which might have L1 cache line length smaller than L2 line. This can lead to sharing one cache line between DMA buffer and other data, so we can lose this data while invalidate DMA buffer before DMA transaction. Fix that by using SMP_CACHE_BYTES instead of L1_CACHE_BYTES for aligning. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions