Commit c99bff3
s390/dasd: fix command reject error on ESE devices
Formatting a thin-provisioned (ESE) device that is part of a PPRC copy
relation might fail with the following error:
dasd-eckd 0.0.f500: An error occurred in the DASD device driver, reason=09
[...]
24 Byte: 0 MSG 4, no MSGb to SYSOP
During format of an ESE disk the Release Allocated Space command is used.
A bit in the payload of the command is set that is not allowed to be set
for devices in a copy relation. This bit is set to allow the partial
release of an extent.
Check for the existence of a copy relation before setting the respective
bit.
Fixes: 91dc4a1 ("s390/dasd: Add new ioctl to release space")
Cc: stable@kernel.org # 5.3+
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Link: https://lore.kernel.org/r/20230519102340.3854819-2-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 1878b73 commit c99bff3
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
3733 | 3735 | | |
3734 | 3736 | | |
3735 | 3737 | | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
3736 | 3758 | | |
3737 | 3759 | | |
3738 | 3760 | | |
| |||
3749 | 3771 | | |
3750 | 3772 | | |
3751 | 3773 | | |
| 3774 | + | |
3752 | 3775 | | |
3753 | 3776 | | |
3754 | 3777 | | |
| |||
3760 | 3783 | | |
3761 | 3784 | | |
3762 | 3785 | | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
3763 | 3790 | | |
3764 | 3791 | | |
3765 | 3792 | | |
| |||
3788 | 3815 | | |
3789 | 3816 | | |
3790 | 3817 | | |
3791 | | - | |
| 3818 | + | |
3792 | 3819 | | |
3793 | | - | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
3794 | 3823 | | |
3795 | 3824 | | |
3796 | 3825 | | |
| |||
0 commit comments