Commit ff04172
Trond Myklebust
NFS: Don't move layouts to plh_return_segs list while in use
If the layout segment is still in use for a read or a write, we should
not move it to the layout plh_return_segs list. If we do, we can end
up returning the layout while I/O is still in progress.
Fixes: e0b7d42 ("pNFS: Don't discard layout segments that are marked for return")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>1 parent 54898f7 commit ff04172
1 file changed
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2392 | 2392 | | |
2393 | 2393 | | |
2394 | 2394 | | |
2395 | | - | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | 2395 | | |
2406 | 2396 | | |
2407 | 2397 | | |
| |||
2438 | 2428 | | |
2439 | 2429 | | |
2440 | 2430 | | |
2441 | | - | |
| 2431 | + | |
2442 | 2432 | | |
2443 | 2433 | | |
2444 | 2434 | | |
| |||
0 commit comments