Commit d60c23e
nvme: move setting the write cache flags out of nvme_set_queue_limits
nvme_set_queue_limits is used on the admin queue and all gendisks
including hidden ones that don't support block I/O. The write cache
setting on the other hand only makes sense for block I/O. Move the
blk_queue_write_cache call to nvme_update_ns_info_block instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent a5b1cd6 commit d60c23e
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1954 | 1954 | | |
1955 | 1955 | | |
1956 | 1956 | | |
1957 | | - | |
1958 | | - | |
1959 | 1957 | | |
1960 | 1958 | | |
1961 | 1959 | | |
1962 | 1960 | | |
1963 | 1961 | | |
1964 | 1962 | | |
1965 | | - | |
1966 | 1963 | | |
1967 | 1964 | | |
1968 | 1965 | | |
| |||
2093 | 2090 | | |
2094 | 2091 | | |
2095 | 2092 | | |
| 2093 | + | |
2096 | 2094 | | |
2097 | 2095 | | |
2098 | 2096 | | |
| |||
2154 | 2152 | | |
2155 | 2153 | | |
2156 | 2154 | | |
| 2155 | + | |
2157 | 2156 | | |
2158 | 2157 | | |
2159 | 2158 | | |
| |||
0 commit comments