1. 05 12月, 2008 14 次提交
  2. 04 12月, 2008 1 次提交
  3. 01 12月, 2008 3 次提交
  4. 20 11月, 2008 1 次提交
  5. 13 11月, 2008 2 次提交
    • R
      sparc: Fix tty compile warnings. · e64ed022
      Robert Reif 提交于
      This patch fixes tty compile warnings as sugested by Alan Cox:
      
      CC drivers/char/n_tty.o
      drivers/char/n_tty.c: In function ‘normal_poll’:
      drivers/char/n_tty.c:1555: warning: array subscript is above array bounds
      drivers/char/n_tty.c:1564: warning: array subscript is above array bounds
      drivers/char/n_tty.c: In function ‘read_chan’:
      drivers/char/n_tty.c:1269: warning: array subscript is above array bounds
      CC drivers/char/tty_ioctl.o
      drivers/char/tty_ioctl.c: In function ‘set_termios’:
      drivers/char/tty_ioctl.c:533: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:537: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c: In function ‘tty_mode_ioctl’:
      drivers/char/tty_ioctl.c:662: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:892: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:896: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:577: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:928: warning: array subscript is above array 
      bounds
      drivers/char/tty_ioctl.c:934: warning: array subscript is above array 
      bounds
      Signed-off-by: NRobert Reif <reif@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e64ed022
    • K
  6. 11 11月, 2008 1 次提交
  7. 02 11月, 2008 4 次提交
  8. 30 10月, 2008 2 次提交
  9. 23 10月, 2008 2 次提交
  10. 20 10月, 2008 2 次提交
    • M
      container freezer: implement freezer cgroup subsystem · dc52ddc0
      Matt Helsley 提交于
      This patch implements a new freezer subsystem in the control groups
      framework.  It provides a way to stop and resume execution of all tasks in
      a cgroup by writing in the cgroup filesystem.
      
      The freezer subsystem in the container filesystem defines a file named
      freezer.state.  Writing "FROZEN" to the state file will freeze all tasks
      in the cgroup.  Subsequently writing "RUNNING" will unfreeze the tasks in
      the cgroup.  Reading will return the current state.
      
      * Examples of usage :
      
         # mkdir /containers/freezer
         # mount -t cgroup -ofreezer freezer  /containers
         # mkdir /containers/0
         # echo $some_pid > /containers/0/tasks
      
      to get status of the freezer subsystem :
      
         # cat /containers/0/freezer.state
         RUNNING
      
      to freeze all tasks in the container :
      
         # echo FROZEN > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         FREEZING
         # cat /containers/0/freezer.state
         FROZEN
      
      to unfreeze all tasks in the container :
      
         # echo RUNNING > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         RUNNING
      
      This is the basic mechanism which should do the right thing for user space
      task in a simple scenario.
      
      It's important to note that freezing can be incomplete.  In that case we
      return EBUSY.  This means that some tasks in the cgroup are busy doing
      something that prevents us from completely freezing the cgroup at this
      time.  After EBUSY, the cgroup will remain partially frozen -- reflected
      by freezer.state reporting "FREEZING" when read.  The state will remain
      "FREEZING" until one of these things happens:
      
      	1) Userspace cancels the freezing operation by writing "RUNNING" to
      		the freezer.state file
      	2) Userspace retries the freezing operation by writing "FROZEN" to
      		the freezer.state file (writing "FREEZING" is not legal
      		and returns EIO)
      	3) The tasks that blocked the cgroup from entering the "FROZEN"
      		state disappear from the cgroup's set of tasks.
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: export thaw_process]
      Signed-off-by: NCedric Le Goater <clg@fr.ibm.com>
      Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
      Acked-by: NSerge E. Hallyn <serue@us.ibm.com>
      Tested-by: NMatt Helsley <matthltc@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dc52ddc0
    • M
      container freezer: add TIF_FREEZE flag to all architectures · 83224b08
      Matt Helsley 提交于
      This patch series introduces a cgroup subsystem that utilizes the swsusp
      freezer to freeze a group of tasks.  It's immediately useful for batch job
      management scripts.  It should also be useful in the future for
      implementing container checkpoint/restart.
      
      The freezer subsystem in the container filesystem defines a cgroup file
      named freezer.state.  Reading freezer.state will return the current state
      of the cgroup.  Writing "FROZEN" to the state file will freeze all tasks
      in the cgroup.  Subsequently writing "RUNNING" will unfreeze the tasks in
      the cgroup.
      
      * Examples of usage :
      
         # mkdir /containers/freezer
         # mount -t cgroup -ofreezer freezer  /containers
         # mkdir /containers/0
         # echo $some_pid > /containers/0/tasks
      
      to get status of the freezer subsystem :
      
         # cat /containers/0/freezer.state
         RUNNING
      
      to freeze all tasks in the container :
      
         # echo FROZEN > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         FREEZING
         # cat /containers/0/freezer.state
         FROZEN
      
      to unfreeze all tasks in the container :
      
         # echo RUNNING > /containers/0/freezer.state
         # cat /containers/0/freezer.state
         RUNNING
      
      This patch:
      
      The first step in making the refrigerator() available to all
      architectures, even for those without power management.
      
      The purpose of such a change is to be able to use the refrigerator() in a
      new control group subsystem which will implement a control group freezer.
      
      [akpm@linux-foundation.org: fix sparc]
      Signed-off-by: NCedric Le Goater <clg@fr.ibm.com>
      Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Acked-by: NSerge E. Hallyn <serue@us.ibm.com>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@tuxonice.net>
      Tested-by: NMatt Helsley <matthltc@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83224b08
  11. 16 10月, 2008 5 次提交
  12. 14 10月, 2008 1 次提交
  13. 13 10月, 2008 1 次提交
    • R
      sparc32: fix build errors · 4245e59d
      Robert Reif 提交于
      arch/sparc/kernel/sun4d_smp.c: In function ‘smp4d_callin’:
      arch/sparc/kernel/sun4d_smp.c:101: error: implicit declaration of function ‘notify_cpu_starting’
      arch/sparc/kernel/sun4m_smp.c: In function ‘smp4m_callin’:
      arch/sparc/kernel/sun4m_smp.c:74: error: implicit declaration of function ‘notify_cpu_starting’
      Signed-off-by: NRobert Reif <reif@earthlink.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4245e59d
  14. 10 10月, 2008 1 次提交