• Jan Kara's avatar
    loop: Push lo_ctl_mutex down into individual ioctls · a1316544
    Jan Kara authored
    Push acquisition of lo_ctl_mutex down into individual ioctl handling
    branches. This is a preparatory step for pushing the lock down into
    individual ioctl handling functions so that they can release the lock as
    they need it. We also factor out some simple ioctl handlers that will
    not need any special handling to reduce unnecessary code duplication.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    a1316544
loop.c 53.5 KB