diff options
author | 2009-12-07 12:52:04 +0100 | |
---|---|---|
committer | 2009-12-07 12:51:36 +0100 | |
commit | 369a46325d07061e0f66e16a1f59ef4f526a6464 (patch) | |
tree | 1d8c398266e1794f7dd2c958b2c2eef6088d5dda /drivers/s390/char/tape_core.c | |
parent | [S390] tape: cleanup reference counting (diff) | |
download | linux-369a46325d07061e0f66e16a1f59ef4f526a6464.tar.gz linux-369a46325d07061e0f66e16a1f59ef4f526a6464.tar.bz2 linux-369a46325d07061e0f66e16a1f59ef4f526a6464.zip |
[S390] tape: remove BKL from tape driver
Replace BLK with a per device mutex.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/tape_core.c')
-rw-r--r-- | drivers/s390/char/tape_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index a7b7e72c691b..f5d6802dc5da 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c @@ -492,6 +492,7 @@ tape_alloc_device(void) kfree(device); return ERR_PTR(-ENOMEM); } + mutex_init(&device->mutex); INIT_LIST_HEAD(&device->req_queue); INIT_LIST_HEAD(&device->node); init_waitqueue_head(&device->state_change_wq); |