Commit 6f007b1
committed
io_uring: don't guard IORING_OFF_PBUF_RING with SETUP_NO_MMAP
This flag only applies to the SQ and CQ rings, it's perfectly valid
to use a mmap approach for the provided ring buffers. Move the
check into where it belongs.
Cc: stable@vger.kernel.org
Fixes: 03d89a2 ("io_uring: support for user allocated memory for rings/sqes")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 820d070 commit 6f007b1
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3478 | 3478 | | |
3479 | 3479 | | |
3480 | 3480 | | |
3481 | | - | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
3485 | 3481 | | |
3486 | 3482 | | |
3487 | 3483 | | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
3488 | 3487 | | |
3489 | 3488 | | |
3490 | 3489 | | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
3491 | 3493 | | |
3492 | 3494 | | |
3493 | 3495 | | |
| |||
0 commit comments