linux/drivers/s390
Stefan Haberland aceaa18f79 s390/dasd: Fix gendisk parent after copy pair swap
commit c943bfc6af upstream.

After a copy pair swap the block device's "device" symlink points to
the secondary CCW device, but the gendisk's parent remained the
primary, leaving /sys/block/<dasdx> under the wrong parent.

Move the gendisk to the secondary's device with device_move(), keeping
the sysfs topology consistent after the swap.

Fixes: 413862caad ("s390/dasd: add copy pair swap capability")
Cc: stable@vger.kernel.org #6.1
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-02 12:57:08 +01:00
..
block s390/dasd: Fix gendisk parent after copy pair swap 2026-01-02 12:57:08 +01:00
char more s390 updates for 6.18 merge window 2025-10-09 10:51:43 -07:00
cio s390/cio: Update purge function to unregister the unused subchannels 2025-10-04 18:40:42 +02:00
crypto s390/ap: Don't leak debug feature files if AP instructions are not available 2025-12-18 14:02:36 +01:00
net s390/ctcm: Fix double-kfree 2025-11-17 16:58:25 -08:00
scsi Merge branch '6.16/scsi-queue' into 6.16/scsi-fixes 2025-06-09 15:34:06 -04:00
virtio s390/virtio_ccw: Don't allocate/assign airqs for non-existing queues 2025-04-09 12:12:41 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00