12 Oct, 2007

5 commits


10 Oct, 2007

2 commits


22 Aug, 2007

2 commits

  • When a vmur device is removed due to a detach of the device, currently the
    ur device structure is freed. Unfortunately it can happen, that there is
    still a user of the device structure, when the character device is open
    during the detach process. To fix this, reference counting for the vmur
    structure is introduced.
    In addition to that, the online, offline, probe and remove functions are
    serialized now using a global mutex.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Heiko Carstens

    Michael Holzheu
     
  • There are several s390 diagnose calls, which must be executed below the
    2GB memory boundary. In order to enforce this, those diagnoses must be
    compiled into the kernel. Currently diag 14 can be called within the
    vmur kernel module from addresses above 2GB. This leads to specification
    exceptions. This patch moves diag10, diag14 and diag210 into the new
    diag.c file.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Heiko Carstens

    Michael Holzheu
     

10 Aug, 2007

6 commits

  • Locking added so that multithreaded applications can now do writes
    from different threads without the risk of storage corruption.

    Signed-off-by: Melissa Howland
    Signed-off-by: Martin Schwidefsky

    Melissa Howland
     
  • If memory buffers above 2GB are used, diagnose 14 raises a specification
    exception. This fix ensures that buffer allocation is done below the 2GB
    boundary.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky

    Michael Holzheu
     
  • If the z/VM reader is already open, it can happen that after opening the
    Linux reader device, not the topmost file is processed. According the
    semantics of the Linux z/VM unit record device driver, always the topmost
    file has to be processed. With this fix an error is returned if that is
    not the case.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky

    Michael Holzheu
     
  • If a reader file with HOLD status is at the top of the reader queue, currently
    all read requests will return data of the second file in the queue. But the
    semantics of vmur is that always the topmost file is read. With this fix
    -EPERM is returned on open, if the topmost reader file is in HOLD status.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky

    Michael Holzheu
     
  • INFO: trying to register non-static key.
    the code is fine but needs lockdep annotation.
    turning off the locking correctness validator.
    000000000ff9fb08 000000000ff9fb18 0000000000000002 0000000000000000
    000000000ff9fbb8 000000000ff9fb30 000000000ff9fb30 0000000000104198
    0000000000000000 0000000000000002 0000000000000000 0000000000000000
    000000000ff9fb18 000000000000000c 000000000ff9fb18 000000000ff9fb88
    0000000000448db0 0000000000104198 000000000ff9fb18 000000000ff9fb68
    Call Trace:
    ([] show_trace+0x12e/0x170)
    [] show_stack+0xc6/0xf8
    [] dump_stack+0x2e/0x3c
    [] __lock_acquire+0x460/0x1048
    [] lock_acquire+0x92/0xb8
    [] _spin_lock_irqsave+0x62/0x80
    [] complete+0x32/0x78
    [] ur_int_handler+0xc8/0xec [vmur]
    [] ccw_device_call_handler+0xae/0xd4
    [] ccw_device_irq+0x5c/0x130
    [] io_subchannel_irq+0x8c/0x118
    [] do_IRQ+0x16c/0x194
    [] io_no_vtime+0x16/0x1c
    [] 0x80001394

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • vmur allocates one contiguous kernel buffer to copy user data when creating
    ccw programs for punch or printer. If big block sizes are used, under memory
    pressure it can happen, that we do not get memory in one chunk. Now we
    allocate memory for each single record to avoid high order allocations.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky

    Michael Holzheu
     

27 Jul, 2007

4 commits


24 Jul, 2007

1 commit

  • Some of the code has been gradually transitioned to using the proper
    struct request_queue, but there's lots left. So do a full sweet of
    the kernel and get rid of this typedef and replace its uses with
    the proper type.

    Signed-off-by: Jens Axboe

    Jens Axboe
     

20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

18 Jul, 2007

1 commit


17 Jul, 2007

2 commits

  • z/VM Unit record character device driver to access VM reader, punch,
    and printer.

    Signed-off-by: Frank Munzert
    Signed-off-by: Martin Schwidefsky

    Frank Munzert
     
  • A number of small changes to vmcp:
    - Change preferred email address.
    - Use PRINT_xxx machros from debug.h like most s390 drivers, define
    "vmcp:" as PRINTK_HEADER and wrap error message at column 80.
    - Add error number to error message.
    - Update copyright, as I touched this file.
    - Small whitespace diff.
    - Use mutex instead of semaphore (Thanks Heiko for the patch)
    - Don't register debug feature on failure.
    - Check debug feature registration on init to avoid a potential oops
    on unload if the debug feature could not be registered--> 2 more
    messages.

    Signed-off-by: Christian Borntraeger
    Signed-off-by: Martin Schwidefsky

    Christian Borntraeger
     

10 Jul, 2007

5 commits


19 Jun, 2007

1 commit


31 May, 2007

1 commit


10 May, 2007

4 commits


09 May, 2007

1 commit


05 May, 2007

1 commit


27 Apr, 2007

3 commits