Commit 1ffc542
io_uring: fix io_sqe_files_unregister() hangs
io_sqe_files_unregister() uninterruptibly waits for enqueued ref nodes,
however requests keeping them may never complete, e.g. because of some
userspace dependency. Make sure it's interruptible otherwise it would
hang forever.
Cc: stable@vger.kernel.org # 5.6+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 1642b44 commit 1ffc542
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
995 | 999 | | |
996 | 1000 | | |
997 | 1001 | | |
| |||
7244 | 7248 | | |
7245 | 7249 | | |
7246 | 7250 | | |
7247 | | - | |
| 7251 | + | |
7248 | 7252 | | |
| 7253 | + | |
7249 | 7254 | | |
7250 | 7255 | | |
7251 | 7256 | | |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
7252 | 7260 | | |
7253 | 7261 | | |
7254 | 7262 | | |
| |||
7260 | 7268 | | |
7261 | 7269 | | |
7262 | 7270 | | |
7263 | | - | |
| 7271 | + | |
| 7272 | + | |
| 7273 | + | |
| 7274 | + | |
| 7275 | + | |
| 7276 | + | |
| 7277 | + | |
| 7278 | + | |
| 7279 | + | |
| 7280 | + | |
| 7281 | + | |
| 7282 | + | |
7264 | 7283 | | |
7265 | 7284 | | |
7266 | 7285 | | |
| |||
7271 | 7290 | | |
7272 | 7291 | | |
7273 | 7292 | | |
| 7293 | + | |
7274 | 7294 | | |
7275 | 7295 | | |
7276 | 7296 | | |
| |||
0 commit comments