[merged] loop-cleanup-partitions-when-detaching-loop-device.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: loop: cleanup partitions when detaching loop device
has been removed from the -mm tree.  Its filename was
     loop-cleanup-partitions-when-detaching-loop-device.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Phillip Susi <psusi@xxxxxxxxxx>
Subject: loop: cleanup partitions when detaching loop device

Any partitions added by user space to the loop device were being left in
place after detaching the loop device.  This was because the detach path
issued a BLKRRPART to clean up partitions if LO_FLAGS_PARTSCAN was set,
meaning that the partitions were auto scanned on attach.  Replace this
BLKRRPART with code that unconditionally cleans up partitions on detach
instead.

The user-visible effect of this bug is that the partition devnodes still
show up after detaching the backing file, and I think the partitions
remained in place after attaching a new file even though it had different
or no partitions at all.

Signed-off-by: Phillip Susi <psusi@xxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: loop-cleanup-partitions-when-detaching-loop-device-checkpatch-fixes

ERROR: that open brace { should be on the previous line
#32: FILE: drivers/block/loop.c:1051:
+	if (bdev)
+	{

WARNING: line over 80 characters
#39: FILE: drivers/block/loop.c:1058:
+		disk_part_iter_init(&piter, bdev->bd_disk, DISK_PITER_INCL_EMPTY);

total: 1 errors, 1 warnings, 26 lines checked

./patches/loop-cleanup-partitions-when-detaching-loop-device.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Jens Axboe <axboe@xxxxxxxxx>
Cc: Phillip Susi <psusi@xxxxxxxxxx>
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: loop-cleanup-partitions-when-detaching-loop-device-fix

add comment, per Phillip

Cc: Jens Axboe <axboe@xxxxxxxxx>
Cc: Phillip Susi <psusi@xxxxxxxxxx>
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: loop-cleanup-partitions-when-detaching-loop-device-fix-fix

export delete_partition() to modules

Cc: Jens Axboe <axboe@xxxxxxxxx>
Cc: Phillip Susi <psusi@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 block/partition-generic.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/block/loop.c~loop-cleanup-partitions-when-detaching-loop-device drivers/block/loop.c
diff -puN block/partition-generic.c~loop-cleanup-partitions-when-detaching-loop-device block/partition-generic.c
--- a/block/partition-generic.c~loop-cleanup-partitions-when-detaching-loop-device
+++ a/block/partition-generic.c
@@ -236,6 +236,7 @@ void __delete_partition(struct hd_struct
 {
 	call_rcu(&part->rcu_head, delete_partition_rcu_cb);
 }
+EXPORT_SYMBOL(delete_partition);
 
 void delete_partition(struct gendisk *disk, int partno)
 {
_

Patches currently in -mm which might be from psusi@xxxxxxxxxx are

linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux