Commit 55bbe715 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "loop: Fix double mutex_unlock(&loop_ctl_mutex) in loop_control_ioctl()"

This reverts commit 9ec298cc which is
commit 628bd85947091830a8c4872adfd5ed1d515a9cf2 upstream.

It is not needed in the 4.4.y tree at this point in time.
Reported-by: default avatarJan Kara <>
Cc: Ming Lei <>
Cc: Jan Kara <>
Cc: Tetsuo Handa <>
Cc: Jens Axboe <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 896354cc
......@@ -1936,10 +1936,12 @@ static long loop_control_ioctl(struct file *file, unsigned int cmd,
if (lo->lo_state != Lo_unbound) {
ret = -EBUSY;
if (atomic_read(&lo->lo_refcnt) > 0) {
ret = -EBUSY;
lo->lo_disk->private_data = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment