commit | 7ff684a683d777c4956fce93e60accbab2bd7696 | [log] [tgz] |
---|---|---|
author | John Pittman <jpittman@redhat.com> | Fri Apr 05 17:42:45 2019 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Apr 06 10:51:08 2019 -0600 |
tree | 28d71c37e524712b89d51d72a15586baa0661f0b | |
parent | fd9c40f64c514bdc585a21e2e33fa5f83ca8811b [diff] |
null_blk: prevent crash from bad home_node value At module load, if the selected home_node value is greater than the available numa nodes, the system will crash in __alloc_pages_nodemask() due to a bad paging request. Prevent this user error crash by detecting the bad value, logging an error, and setting g_home_node back to the default of NUMA_NO_NODE. Signed-off-by: John Pittman <jpittman@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>