Repository navigation
Commit 215df43
nvme: keep ctrl->namespaces ordered
[ Upstream commit 298ba0e ]
Various places in the nvme code that rely on ctrl->namespace to be
ordered. Ensure that the namespae is inserted into the list at the
right position from the start instead of sorting it after the fact.
Fixes: 540c801 ("NVMe: Implement namespace list scanning")
Reported-by: Anton Eidelman <anton.eidelman@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 55e6f8b commit 215df43
1 file changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
3801 | 3800 | | |
3802 | 3801 | | |
3803 | 3802 | | |
3804 | | - | |
3805 | | - | |
3806 | | - | |
3807 | | - | |
3808 | | - | |
3809 | | - | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | 3803 | | |
3814 | 3804 | | |
3815 | 3805 | | |
| |||
3830 | 3820 | | |
3831 | 3821 | | |
3832 | 3822 | | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
3833 | 3839 | | |
3834 | 3840 | | |
3835 | 3841 | | |
| |||
3889 | 3895 | | |
3890 | 3896 | | |
3891 | 3897 | | |
3892 | | - | |
| 3898 | + | |
3893 | 3899 | | |
3894 | | - | |
3895 | 3900 | | |
3896 | 3901 | | |
3897 | 3902 | | |
| |||
4160 | 4165 | | |
4161 | 4166 | | |
4162 | 4167 | | |
4163 | | - | |
4164 | | - | |
4165 | | - | |
4166 | | - | |
4167 | 4168 | | |
4168 | 4169 | | |
4169 | 4170 | | |
| |||
0 commit comments