Commit 0e4aac7
md/raid5: only add to wq if reshape is in progress
Now that actual overlaps are not handled on the wait_for_overlap wq
anymore, the remaining cases when we wait on this wq are limited to
reshape. If reshape is not in progress, don't add to the wq in
raid5_make_request() because add_wait_queue() / remove_wait_queue()
operations take a spinlock and cause noticeable contention when multiple
threads are submitting requests to the mddev.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Link: https://lore.kernel.org/r/20240827153536.6743-3-artur.paszkiewicz@intel.com
Signed-off-by: Song Liu <song@kernel.org>1 parent e6a0320 commit 0e4aac7
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6070 | 6070 | | |
6071 | 6071 | | |
6072 | 6072 | | |
| 6073 | + | |
6073 | 6074 | | |
6074 | 6075 | | |
6075 | 6076 | | |
| |||
6143 | 6144 | | |
6144 | 6145 | | |
6145 | 6146 | | |
6146 | | - | |
| 6147 | + | |
6147 | 6148 | | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
| 6152 | + | |
| 6153 | + | |
6148 | 6154 | | |
6149 | 6155 | | |
6150 | | - | |
6151 | 6156 | | |
6152 | 6157 | | |
6153 | 6158 | | |
| |||
6158 | 6163 | | |
6159 | 6164 | | |
6160 | 6165 | | |
| 6166 | + | |
6161 | 6167 | | |
6162 | 6168 | | |
6163 | 6169 | | |
| |||
6182 | 6188 | | |
6183 | 6189 | | |
6184 | 6190 | | |
6185 | | - | |
| 6191 | + | |
| 6192 | + | |
6186 | 6193 | | |
6187 | 6194 | | |
6188 | 6195 | | |
| |||
0 commit comments