mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mount -t tmpfs -o mpol=: check nodes online
Randy Dunlap reports that a tmpfs, mounted with NUMA mpol= specifying an offline node, crashes as soon as data is allocated upon it. Now restrict it to online nodes, where before it restricted to MAX_NUMNODES. Signed-off-by: Hugh Dickins <[email protected]> Cc: Robin Holt <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Andi Kleen <[email protected]> Tested-and-acked-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9739ed1c8e
commit
a210906c1b
2 changed files with 7 additions and 5 deletions
|
|
@ -94,10 +94,10 @@ largest node numbers in the range. For example, mpol=bind:0-3,5,7,9-15
|
|||
|
||||
Note that trying to mount a tmpfs with an mpol option will fail if the
|
||||
running kernel does not support NUMA; and will fail if its nodelist
|
||||
specifies a node >= MAX_NUMNODES. If your system relies on that tmpfs
|
||||
being mounted, but from time to time runs a kernel built without NUMA
|
||||
capability (perhaps a safe recovery kernel), or configured to support
|
||||
fewer nodes, then it is advisable to omit the mpol option from automatic
|
||||
specifies a node which is not online. If your system relies on that
|
||||
tmpfs being mounted, but from time to time runs a kernel built without
|
||||
NUMA capability (perhaps a safe recovery kernel), or with fewer nodes
|
||||
online, then it is advisable to omit the mpol option from automatic
|
||||
mount options. It can be added later, when the tmpfs is already mounted
|
||||
on MountPoint, by 'mount -o remount,mpol=Policy:NodeList MountPoint'.
|
||||
|
||||
|
|
@ -121,4 +121,4 @@ RAM/SWAP in 10240 inodes and it is only accessible by root.
|
|||
Author:
|
||||
Christoph Rohland <[email protected]>, 1.12.01
|
||||
Updated:
|
||||
Hugh Dickins <[email protected]>, 19 February 2006
|
||||
Hugh Dickins <[email protected]>, 4 June 2007
|
||||
|
|
|
|||
Loading…
Reference in a new issue