Commit 9dd8702
md: clean up invalid BUG_ON in md_ioctl
'disk->private_data' is set to mddev in md_alloc() and never set to NULL,
and users need to open mddev before submitting ioctl. So mddev must not
have been freed during ioctl, and there is no need to check mddev here.
Clean up it.
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240226031444.3606764-4-linan666@huaweicloud.com1 parent 4e26593 commit 9dd8702
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7622 | 7622 | | |
7623 | 7623 | | |
7624 | 7624 | | |
7625 | | - | |
7626 | | - | |
7627 | | - | |
7628 | | - | |
7629 | | - | |
7630 | 7625 | | |
7631 | 7626 | | |
7632 | 7627 | | |
| |||
0 commit comments