Hi, The 1st patch cleans up __loop_clr_fd a bit. The 2nd patch fixes one issue which may make ghost partitions even though after fd is cleared or changed. Ming Lei (2): block: loop: share code of reread partitions block: loop: delete partitions after clearing & changing fd drivers/block/loop.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) -- 2.25.2