+ cpuset-allow-a-larger-buffer-for-writes-to-cpuset-files.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     cpuset: allow a larger buffer for writes to cpuset files
has been added to the -mm tree.  Its filename is
     cpuset-allow-a-larger-buffer-for-writes-to-cpuset-files.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: cpuset: allow a larger buffer for writes to cpuset files
From: "Paul Menage" <menage@xxxxxxxxxx>

When using fake NUMA setup, the number of memory nodes can greatly exceed
the number of CPUs.  So the current limit in cpuset_common_file_write() is
insufficient.  PAGE_SIZE is still a bit of an arbitrary limit, but gives
more breathing room.

Signed-off-by: Paul Menage <menage@xxxxxxxxxx>
Cc: Paul Jackson <pj@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/cpuset.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/cpuset.c~cpuset-allow-a-larger-buffer-for-writes-to-cpuset-files kernel/cpuset.c
--- a/kernel/cpuset.c~cpuset-allow-a-larger-buffer-for-writes-to-cpuset-files
+++ a/kernel/cpuset.c
@@ -1292,7 +1292,7 @@ static ssize_t cpuset_common_file_write(
 	int retval = 0;
 
 	/* Crude upper limit on largest legitimate cpulist user might write. */
-	if (nbytes > 100 + 6 * NR_CPUS)
+	if (nbytes >= PAGE_SIZE)
 		return -E2BIG;
 
 	/* +1 for nul-terminator */
_

Patches currently in -mm which might be from menage@xxxxxxxxxx are

add-noaliencache-boot-option-to-disable-numa-alien-caches.patch
cpuset-allow-a-larger-buffer-for-writes-to-cpuset-files.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux