4.4-stable review patch. If anyone has any objections, please let me know.
------------------ From: Greg Kroah-Hartman <gre...@linuxfoundation.org> This reverts commit 9ec298cc874d08020f45791a8396e1593c3278c1 which is commit 628bd85947091830a8c4872adfd5ed1d515a9cf2 upstream. It is not needed in the 4.4.y tree at this point in time. Reported-by: Jan Kara <j...@suse.cz> Cc: Ming Lei <ming....@redhat.com> Cc: Jan Kara <j...@suse.cz> Cc: Tetsuo Handa <penguin-ker...@i-love.sakura.ne.jp> Cc: Jens Axboe <ax...@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- drivers/block/loop.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1936,10 +1936,12 @@ static long loop_control_ioctl(struct fi break; if (lo->lo_state != Lo_unbound) { ret = -EBUSY; + mutex_unlock(&loop_ctl_mutex); break; } if (atomic_read(&lo->lo_refcnt) > 0) { ret = -EBUSY; + mutex_unlock(&loop_ctl_mutex); break; } lo->lo_disk->private_data = NULL;