Commit f73b597
loop: be paranoid on exit and prevent new additions / removals
[ Upstream commit 200f933 ]
Be pedantic on removal as well and hold the mutex.
This should prevent uses of addition while we exit.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 29e1dfc commit f73b597
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| 2282 | + | |
| 2283 | + | |
2282 | 2284 | | |
2283 | 2285 | | |
2284 | 2286 | | |
2285 | 2287 | | |
2286 | 2288 | | |
2287 | 2289 | | |
2288 | 2290 | | |
| 2291 | + | |
| 2292 | + | |
2289 | 2293 | | |
2290 | 2294 | | |
2291 | 2295 | | |
| |||
0 commit comments