Commit 1a02f3a
block: move the stable_writes flag to queue_limits
Move the stable_writes flag into the queue_limits feature field so that
it can be set atomically with the queue frozen.
The flag is now inherited by blk_stack_limits, which greatly simplifies
the code in dm, and fixed md which previously did not pass on the flag
set on lower devices.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240617060532.127975-18-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent cdb2497 commit 1a02f3a
File tree
12 files changed
+29
-77
lines changed- block
- drivers
- block
- drbd
- zram
- md
- mmc/core
- nvme/host
- scsi
- include/linux
12 files changed
+29
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 299 | | |
326 | 300 | | |
327 | 301 | | |
328 | | - | |
329 | | - | |
| 302 | + | |
330 | 303 | | |
331 | 304 | | |
332 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2698 | 2698 | | |
2699 | 2699 | | |
2700 | 2700 | | |
2701 | | - | |
| 2701 | + | |
| 2702 | + | |
2702 | 2703 | | |
2703 | 2704 | | |
2704 | 2705 | | |
| |||
2737 | 2738 | | |
2738 | 2739 | | |
2739 | 2740 | | |
2740 | | - | |
2741 | | - | |
2742 | 2741 | | |
2743 | 2742 | | |
2744 | 2743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4949 | 4949 | | |
4950 | 4950 | | |
4951 | 4951 | | |
4952 | | - | |
4953 | 4952 | | |
4954 | 4953 | | |
4955 | 4954 | | |
| |||
4979 | 4978 | | |
4980 | 4979 | | |
4981 | 4980 | | |
| 4981 | + | |
| 4982 | + | |
| 4983 | + | |
4982 | 4984 | | |
4983 | 4985 | | |
4984 | 4986 | | |
4985 | 4987 | | |
4986 | 4988 | | |
4987 | | - | |
4988 | 4989 | | |
4989 | 4990 | | |
4990 | 4991 | | |
| |||
4996 | 4997 | | |
4997 | 4998 | | |
4998 | 4999 | | |
4999 | | - | |
5000 | | - | |
5001 | | - | |
5002 | | - | |
5003 | 5000 | | |
5004 | 5001 | | |
5005 | 5002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2208 | 2208 | | |
2209 | 2209 | | |
2210 | 2210 | | |
| 2211 | + | |
2211 | 2212 | | |
2212 | 2213 | | |
2213 | 2214 | | |
| |||
2246 | 2247 | | |
2247 | 2248 | | |
2248 | 2249 | | |
2249 | | - | |
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | 1822 | | |
1830 | 1823 | | |
1831 | 1824 | | |
| |||
1862 | 1855 | | |
1863 | 1856 | | |
1864 | 1857 | | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | 1858 | | |
1878 | 1859 | | |
1879 | 1860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7082 | 7082 | | |
7083 | 7083 | | |
7084 | 7084 | | |
| 7085 | + | |
7085 | 7086 | | |
7086 | 7087 | | |
7087 | 7088 | | |
7088 | | - | |
| 7089 | + | |
7089 | 7090 | | |
7090 | | - | |
| 7091 | + | |
| 7092 | + | |
7091 | 7093 | | |
7092 | 7094 | | |
7093 | 7095 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
386 | | - | |
387 | | - | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3724 | 3724 | | |
3725 | 3725 | | |
3726 | 3726 | | |
| 3727 | + | |
3727 | 3728 | | |
3728 | 3729 | | |
3729 | 3730 | | |
| |||
3732 | 3733 | | |
3733 | 3734 | | |
3734 | 3735 | | |
3735 | | - | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
3736 | 3740 | | |
3737 | 3741 | | |
3738 | 3742 | | |
| |||
3741 | 3745 | | |
3742 | 3746 | | |
3743 | 3747 | | |
3744 | | - | |
3745 | | - | |
3746 | | - | |
3747 | 3748 | | |
3748 | 3749 | | |
3749 | 3750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | 871 | | |
876 | 872 | | |
877 | 873 | | |
| |||
0 commit comments