summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grukdump.c
diff options
context:
space:
mode:
authorJack Steiner2009-06-18 01:28:22 +0200
committerLinus Torvalds2009-06-18 22:04:00 +0200
commit836ce679c0b5b5040164171afc33753396864b30 (patch)
tree786be786c29fa6821d8ee95668393cd43193a278 /drivers/misc/sgi-gru/grukdump.c
parentgru: support cch_allocate for kernel threads (diff)
downloadkernel-qcow2-linux-836ce679c0b5b5040164171afc33753396864b30.tar.gz
kernel-qcow2-linux-836ce679c0b5b5040164171afc33753396864b30.tar.xz
kernel-qcow2-linux-836ce679c0b5b5040164171afc33753396864b30.zip
gru: change resource assignment for kernel threads
Change the way GRU resources are assigned for kernel threads. GRU contexts for kernel threads are now allocated on demand and can be stolen by user processes when idle. This allows MPI jobs to use ALL of the GRU resources when the kernel is not using them. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grukdump.c')
-rw-r--r--drivers/misc/sgi-gru/grukdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sgi-gru/grukdump.c b/drivers/misc/sgi-gru/grukdump.c
index 27e00931a7b8..7b1bdf3906ba 100644
--- a/drivers/misc/sgi-gru/grukdump.c
+++ b/drivers/misc/sgi-gru/grukdump.c
@@ -131,7 +131,7 @@ static int gru_dump_context(struct gru_state *gru, int ctxnum,
if (cch_locked || !lock_cch) {
gts = gru->gs_gts[ctxnum];
- if (gts) {
+ if (gts && gts->ts_vma) {
hdr.pid = gts->ts_tgid_owner;
hdr.vaddr = gts->ts_vma->vm_start;
}