Replace BLK use in fs3270 with mutex.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
        size_t rdbuf_size;              /* size of data returned by RDBUF */
 };
 
+static DEFINE_MUTEX(fs3270_mutex);
+
 static void
 fs3270_wake_up(struct raw3270_request *rq, void *data)
 {
        if (!fp)
                return -ENODEV;
        rc = 0;
-       lock_kernel();
+       mutex_lock(&fs3270_mutex);
        switch (cmd) {
        case TUBICMD:
                fp->read_command = arg;
                        rc = -EFAULT;
                break;
        }
-       unlock_kernel();
+       mutex_unlock(&fs3270_mutex);
        return rc;
 }
 
                minor = tty->index + RAW3270_FIRSTMINOR;
                tty_kref_put(tty);
        }
-       lock_kernel();
+       mutex_lock(&fs3270_mutex);
        /* Check if some other program is already using fullscreen mode. */
        fp = (struct fs3270 *) raw3270_find_view(&fs3270_fn, minor);
        if (!IS_ERR(fp)) {
        }
        filp->private_data = fp;
 out:
-       unlock_kernel();
+       mutex_unlock(&fs3270_mutex);
        return rc;
 }