Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b47f9d5 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Martin Schwidefsky
Browse files

[S390] vmlogrdr: remove BKL

parent 3c492d20
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -312,11 +312,9 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
		return -ENOSYS;
		return -ENOSYS;


	/* Besure this device hasn't already been opened */
	/* Besure this device hasn't already been opened */
	lock_kernel();
	spin_lock_bh(&logptr->priv_lock);
	spin_lock_bh(&logptr->priv_lock);
	if (logptr->dev_in_use)	{
	if (logptr->dev_in_use)	{
		spin_unlock_bh(&logptr->priv_lock);
		spin_unlock_bh(&logptr->priv_lock);
		unlock_kernel();
		return -EBUSY;
		return -EBUSY;
	}
	}
	logptr->dev_in_use = 1;
	logptr->dev_in_use = 1;
@@ -360,9 +358,8 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
		   || (logptr->iucv_path_severed));
		   || (logptr->iucv_path_severed));
	if (logptr->iucv_path_severed)
	if (logptr->iucv_path_severed)
		goto out_record;
		goto out_record;
 	ret = nonseekable_open(inode, filp);
	nonseekable_open(inode, filp);
	unlock_kernel();
	return 0;
	return ret;


out_record:
out_record:
	if (logptr->autorecording)
	if (logptr->autorecording)
@@ -372,7 +369,6 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
	logptr->path = NULL;
	logptr->path = NULL;
out_dev:
out_dev:
	logptr->dev_in_use = 0;
	logptr->dev_in_use = 0;
	unlock_kernel();
	return -EIO;
	return -EIO;
}
}