Commit 2d1b7fd
tcp: Remove mmap_lock fallback path
Previously, the per-VMA locking could fail in the face of writers
which necessitates a fallback to mmap_lock. The new
lock_vma_under_rcu_wait() will wait for writers instead of failing.
Use the new helper. Wait for writers. Remove the fallback to mmap_lock.
This really is a nice cleanup. It removes the need to pass the lock
state back and forth to find_tcp_vma().
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Lorenzo Stoakes <ljs@kernel.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: linux-mm@kvack.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Christian Brauner <christian@brauner.io>
Cc: Carlos Llamas <cmllamas@google.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: David Ahern <dsahern@kernel.org>
Cc: netdev@vger.kernel.org1 parent 4ce5443 commit 2d1b7fd
1 file changed
Lines changed: 9 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2168 | 2168 | | |
2169 | 2169 | | |
2170 | 2170 | | |
2171 | | - | |
2172 | | - | |
| 2171 | + | |
2173 | 2172 | | |
2174 | | - | |
| 2173 | + | |
2175 | 2174 | | |
2176 | | - | |
2177 | | - | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
2183 | | - | |
| 2175 | + | |
| 2176 | + | |
2184 | 2177 | | |
2185 | | - | |
2186 | | - | |
2187 | | - | |
2188 | | - | |
| 2178 | + | |
| 2179 | + | |
2189 | 2180 | | |
2190 | 2181 | | |
2191 | | - | |
| 2182 | + | |
2192 | 2183 | | |
2193 | 2184 | | |
2194 | 2185 | | |
| |||
2209 | 2200 | | |
2210 | 2201 | | |
2211 | 2202 | | |
2212 | | - | |
2213 | 2203 | | |
2214 | 2204 | | |
2215 | 2205 | | |
| |||
2234 | 2224 | | |
2235 | 2225 | | |
2236 | 2226 | | |
2237 | | - | |
| 2227 | + | |
2238 | 2228 | | |
2239 | 2229 | | |
2240 | 2230 | | |
| |||
2316 | 2306 | | |
2317 | 2307 | | |
2318 | 2308 | | |
2319 | | - | |
2320 | | - | |
2321 | | - | |
2322 | | - | |
| 2309 | + | |
2323 | 2310 | | |
2324 | 2311 | | |
2325 | 2312 | | |
| |||
0 commit comments