You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
taskstats: fix struct taskstats breaks backward compatibility since version 15
Problem
========
commit 658eb5a ("delayacct: add delay max to record delay peak")
- adding more fields
commit f65c64f ("delayacct: add delay min to record delay peak")
- adding more fields
commit b016d08 ("taskstats: modify taskstats version")
- version bump to 15
Since version 15 (TASKSTATS_VERSION=15) the new layout of the structure
adds fields in the middle of the structure, rendering all old software
incompatible with newer kernels and software compiled against the new
kernel headers incompatible with older kernels.
Solution
=========
move delay max and delay min to the end of taskstat, and bump
the version to 16 after the change
[[email protected]: adjust indentation]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: f65c64f ("delayacct: add delay min to record delay peak")
Signed-off-by: Wang Yaxin <[email protected]>
Signed-off-by: xu xin <[email protected]>
Signed-off-by: Kun Jiang <[email protected]>
Reviewed-by: Yang Yang <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
0 commit comments