commit | 7ccd0791d98531df7cd59e92d55e4f063d48a070 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Thu Nov 08 14:01:07 2018 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Nov 08 06:30:19 2018 -0700 |
tree | d2344b6dcb605bd6d0c1d1af4fb8143f374b4d8d | |
parent | a2505b799a496b7b84d9a4a14ec870ff9e42e11b [diff] |
loop: Push loop_ctl_mutex down into loop_clr_fd() loop_clr_fd() has a weird locking convention that is expects loop_ctl_mutex held, releases it on success and keeps it on failure. Untangle the mess by moving locking of loop_ctl_mutex into loop_clr_fd(). Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>