Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164662
b: refs/heads/master
c: a8f90e9
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras authored and Ingo Molnar committed Sep 22, 2009
1 parent 132695e commit 9a0ea1f
Show file tree
Hide file tree
Showing 511 changed files with 3,373 additions and 9,823 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 991d79b0d1255f89267a350b0048eca59f100cbb
refs/heads/master: a8f90e906783f1f815120eefe813b23cb396e9bd
2 changes: 1 addition & 1 deletion trunk/Documentation/DocBook/mtdnand.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
<para>
The blocks in which the tables are stored are procteted against
accidental access by marking them bad in the memory bad block
table. The bad block table management functions are allowed
table. The bad block table managment functions are allowed
to circumvernt this protection.
</para>
<para>
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/DocBook/scsi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
<para>
The SAS transport class contains common code to deal with SAS HBAs,
an aproximated representation of SAS topologies in the driver model,
and various sysfs attributes to expose these topologies and management
and various sysfs attributes to expose these topologies and managment
interfaces to userspace.
</para>
<para>
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/SubmittingPatches
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ the MAN-PAGES maintainer (as listed in the MAINTAINERS file)
a man-pages patch, or at least a notification of the change,
so that some information makes its way into the manual pages.

Even if the maintainer did not respond in step #5, make sure to ALWAYS
Even if the maintainer did not respond in step #4, make sure to ALWAYS
copy the maintainer when you change their code.

For small patches you may want to CC the Trivial Patch Monkey
Expand Down
54 changes: 0 additions & 54 deletions trunk/Documentation/filesystems/nfs41-server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ the /proc/fs/nfsd/versions control file. Note that to write this
control file, the nfsd service must be taken down. Use your user-mode
nfs-utils to set this up; see rpc.nfsd(8)

(Warning: older servers will interpret "+4.1" and "-4.1" as "+4" and
"-4", respectively. Therefore, code meant to work on both new and old
kernels must turn 4.1 on or off *before* turning support for version 4
on or off; rpc.nfsd does this correctly.)

The NFSv4 minorversion 1 (NFSv4.1) implementation in nfsd is based
on the latest NFSv4.1 Internet Draft:
http://tools.ietf.org/html/draft-ietf-nfsv4-minorversion1-29
Expand All @@ -30,49 +25,6 @@ are still under development out of tree.
See http://wiki.linux-nfs.org/wiki/index.php/PNFS_prototype_design
for more information.

The current implementation is intended for developers only: while it
does support ordinary file operations on clients we have tested against
(including the linux client), it is incomplete in ways which may limit
features unexpectedly, cause known bugs in rare cases, or cause
interoperability problems with future clients. Known issues:

- gss support is questionable: currently mounts with kerberos
from a linux client are possible, but we aren't really
conformant with the spec (for example, we don't use kerberos
on the backchannel correctly).
- no trunking support: no clients currently take advantage of
trunking, but this is a mandatory failure, and its use is
recommended to clients in a number of places. (E.g. to ensure
timely renewal in case an existing connection's retry timeouts
have gotten too long; see section 8.3 of the draft.)
Therefore, lack of this feature may cause future clients to
fail.
- Incomplete backchannel support: incomplete backchannel gss
support and no support for BACKCHANNEL_CTL mean that
callbacks (hence delegations and layouts) may not be
available and clients confused by the incomplete
implementation may fail.
- Server reboot recovery is unsupported; if the server reboots,
clients may fail.
- We do not support SSV, which provides security for shared
client-server state (thus preventing unauthorized tampering
with locks and opens, for example). It is mandatory for
servers to support this, though no clients use it yet.
- Mandatory operations which we do not support, such as
DESTROY_CLIENTID, FREE_STATEID, SECINFO_NO_NAME, and
TEST_STATEID, are not currently used by clients, but will be
(and the spec recommends their uses in common cases), and
clients should not be expected to know how to recover from the
case where they are not supported. This will eventually cause
interoperability failures.

In addition, some limitations are inherited from the current NFSv4
implementation:

- Incomplete delegation enforcement: if a file is renamed or
unlinked, a client holding a delegation may continue to
indefinitely allow opens of the file under the old name.

The table below, taken from the NFSv4.1 document, lists
the operations that are mandatory to implement (REQ), optional
(OPT), and NFSv4.0 operations that are required not to implement (MNI)
Expand Down Expand Up @@ -190,12 +142,6 @@ NS*| CB_WANTS_CANCELLED | OPT | FDELG, | Section 20.10 |

Implementation notes:

DELEGPURGE:
* mandatory only for servers that support CLAIM_DELEGATE_PREV and/or
CLAIM_DELEG_PREV_FH (which allows clients to keep delegations that
persist across client reboots). Thus we need not implement this for
now.

EXCHANGE_ID:
* only SP4_NONE state protection supported
* implementation ids are ignored
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/filesystems/nfsroot.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
the client address and this parameter is NOT empty only
replies from the specified server are accepted.

Only required for NFS root. That is autoconfiguration
Only required for for NFS root. That is autoconfiguration
will not be triggered if it is missing and NFS root is not
in operation.

Expand Down
22 changes: 4 additions & 18 deletions trunk/Documentation/filesystems/proc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,19 +375,6 @@ of memory currently marked as referenced or accessed.
This file is only present if the CONFIG_MMU kernel configuration option is
enabled.

The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG
bits on both physical and virtual pages associated with a process.
To clear the bits for all the pages associated with the process
> echo 1 > /proc/PID/clear_refs

To clear the bits for the anonymous pages associated with the process
> echo 2 > /proc/PID/clear_refs

To clear the bits for the file mapped pages associated with the process
> echo 3 > /proc/PID/clear_refs
Any other value written to /proc/PID/clear_refs will have no effect.


1.2 Kernel data
---------------

Expand Down Expand Up @@ -1045,9 +1032,9 @@ Various pieces of information about kernel activity are available in the
since the system first booted. For a quick look, simply cat the file:

> cat /proc/stat
cpu 2255 34 2290 22625563 6290 127 456 0 0
cpu0 1132 34 1441 11311718 3675 127 438 0 0
cpu1 1123 0 849 11313845 2614 0 18 0 0
cpu 2255 34 2290 22625563 6290 127 456 0
cpu0 1132 34 1441 11311718 3675 127 438 0
cpu1 1123 0 849 11313845 2614 0 18 0
intr 114930548 113199788 3 0 5 263 0 4 [... lots more numbers ...]
ctxt 1990473
btime 1062191376
Expand All @@ -1069,7 +1056,6 @@ second). The meanings of the columns are as follows, from left to right:
- irq: servicing interrupts
- softirq: servicing softirqs
- steal: involuntary wait
- guest: running a guest

The "intr" line gives counts of interrupts serviced since boot time, for each
of the possible system interrupts. The first column is the total of all
Expand Down Expand Up @@ -1205,7 +1191,7 @@ The following heuristics are then applied:
* if the task was reniced, its score doubles
* superuser or direct hardware access tasks (CAP_SYS_ADMIN, CAP_SYS_RESOURCE
or CAP_SYS_RAWIO) have their score divided by 4
* if oom condition happened in one cpuset and checked process does not belong
* if oom condition happened in one cpuset and checked task does not belong
to it, its score is divided by 8
* the resulting score is multiplied by two to the power of oom_adj, i.e.
points <<= oom_adj when it is positive and
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/gcov.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Possible uses:

Configure the kernel with:

CONFIG_DEBUG_FS=y
CONFIG_DEBUGFS=y
CONFIG_GCOV_KERNEL=y

and to get coverage data for the entire kernel:
Expand Down
115 changes: 35 additions & 80 deletions trunk/Documentation/hwmon/hpfall.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,6 @@
#include <stdint.h>
#include <errno.h>
#include <signal.h>
#include <sys/mman.h>
#include <sched.h>

char unload_heads_path[64];

int set_unload_heads_path(char *device)
{
char devname[64];

if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0)
return -EINVAL;
strncpy(devname, device + 5, sizeof(devname));

snprintf(unload_heads_path, sizeof(unload_heads_path),
"/sys/block/%s/device/unload_heads", devname);
return 0;
}
int valid_disk(void)
{
int fd = open(unload_heads_path, O_RDONLY);
if (fd < 0) {
perror(unload_heads_path);
return 0;
}

close(fd);
return 1;
}

void write_int(char *path, int i)
{
Expand All @@ -68,7 +40,7 @@ void set_led(int on)

void protect(int seconds)
{
write_int(unload_heads_path, seconds*1000);
write_int("/sys/block/sda/device/unload_heads", seconds*1000);
}

int on_ac(void)
Expand All @@ -85,62 +57,45 @@ void ignore_me(void)
{
protect(0);
set_led(0);

}

int main(int argc, char **argv)
int main(int argc, char* argv[])
{
int fd, ret;
struct sched_param param;

if (argc == 1)
ret = set_unload_heads_path("/dev/sda");
else if (argc == 2)
ret = set_unload_heads_path(argv[1]);
else
ret = -EINVAL;

if (ret || !valid_disk()) {
fprintf(stderr, "usage: %s <device> (default: /dev/sda)\n",
argv[0]);
exit(1);
}

fd = open("/dev/freefall", O_RDONLY);
if (fd < 0) {
perror("/dev/freefall");
return EXIT_FAILURE;
}
int fd, ret;

daemon(0, 0);
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
sched_setscheduler(0, SCHED_FIFO, &param);
mlockall(MCL_CURRENT|MCL_FUTURE);
fd = open("/dev/freefall", O_RDONLY);
if (fd < 0) {
perror("open");
return EXIT_FAILURE;
}

signal(SIGALRM, ignore_me);

for (;;) {
unsigned char count;

ret = read(fd, &count, sizeof(count));
alarm(0);
if ((ret == -1) && (errno == EINTR)) {
/* Alarm expired, time to unpark the heads */
continue;
}

if (ret != sizeof(count)) {
perror("read");
break;
}

protect(21);
set_led(1);
if (1 || on_ac() || lid_open())
alarm(2);
else
alarm(20);
}

close(fd);
return EXIT_SUCCESS;
for (;;) {
unsigned char count;

ret = read(fd, &count, sizeof(count));
alarm(0);
if ((ret == -1) && (errno == EINTR)) {
/* Alarm expired, time to unpark the heads */
continue;
}

if (ret != sizeof(count)) {
perror("read");
break;
}

protect(21);
set_led(1);
if (1 || on_ac() || lid_open()) {
alarm(2);
} else {
alarm(20);
}
}

close(fd);
return EXIT_SUCCESS;
}
2 changes: 1 addition & 1 deletion trunk/Documentation/hwmon/pc87427
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ Fan rotation speeds are reported as 14-bit values from a gated clock
signal. Speeds down to 83 RPM can be measured.

An alarm is triggered if the rotation speed drops below a programmable
limit. Another alarm is triggered if the speed is too low to be measured
limit. Another alarm is triggered if the speed is too low to to be measured
(including stalled or missing fan).
2 changes: 1 addition & 1 deletion trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ and is between 256 and 4096 characters. It is defined in the file
1 -- enable informational integrity auditing messages.

ima_hash= [IMA]
Format: { "sha1" | "md5" }
Formt: { "sha1" | "md5" }
default: "sha1"

ima_tcb [IMA]
Expand Down
21 changes: 20 additions & 1 deletion trunk/Documentation/kmemcheck.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,26 @@ feature.
1. Downloading
==============

As of version 2.6.31-rc1, kmemcheck is included in the mainline kernel.
kmemcheck can only be downloaded using git. If you want to write patches
against the current code, you should use the kmemcheck development branch of
the tip tree. It is also possible to use the linux-next tree, which also
includes the latest version of kmemcheck.

Assuming that you've already cloned the linux-2.6.git repository, all you
have to do is add the -tip tree as a remote, like this:

$ git remote add tip git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git

To actually download the tree, fetch the remote:

$ git fetch tip

And to check out a new local branch with the kmemcheck code:

$ git checkout -b kmemcheck tip/kmemcheck

General instructions for the -tip tree can be found here:
http://people.redhat.com/mingo/tip.git/readme.txt


2. Configuring and compiling
Expand Down
Loading

0 comments on commit 9a0ea1f

Please sign in to comment.