diff options
author | Jan Kara <jack@suse.cz> | 2018-11-08 14:01:12 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-08 06:30:30 -0700 |
commit | d57f3374ba4817f7c8d26fae8a13d20ac8d31b92 (patch) | |
tree | bfcc6f9aec53526139b599ec9a814a30b2d08137 /Documentation/x86 | |
parent | c371077000f4138ee3c15fbed50101ff24bdc91d (diff) |
loop: Move special partition reread handling in loop_clr_fd()
The call of __blkdev_reread_part() from loop_reread_partition() happens
only when we need to invalidate partitions from loop_release(). Thus
move a detection for this into loop_clr_fd() and simplify
loop_reread_partition().
This makes loop_reread_partition() safe to use without loop_ctl_mutex
because we use only lo->lo_number and lo->lo_file_name in case of error
for reporting purposes (thus possibly reporting outdate information is
not a big deal) and we are safe from 'lo' going away under us by
elevated lo->lo_refcnt.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions