History

io_uring: wire up allocated direct descriptors for socket

The socket support was merged in an earlier branch that didn't yet have support for allocating direct descriptors, hence only open and accept got support for that. Do the one-liner to enable it now, so we have consistent support for any request that can instantiate a file/direct descriptor.

Jens Axboe committed 4 years ago

Commit fa82dd11 parent 21870e01 file · +2 −2Browse files

Unified · Split

fs/io_uring.c+2−2
@@ -6676,8 +6676,8 @@ static int io_socket(struct io_kiocb *req, unsigned int issue_flags) · 6675 unmodified lines
6676 fd_install(fd, file);6676 fd_install(fd, file);
6677 ret = fd;6677 ret = fd;
6678 } else {6678 } else {
6679 ret = io_install_fixed_file(req, file, issue_flags,6679 ret = io_fixed_fd_install(req, issue_flags, file,
6680 sock->file_slot - 1);6680 sock->file_slot);
6681 }6681 }
6682 __io_req_complete(req, issue_flags, ret, 0);6682 __io_req_complete(req, issue_flags, ret, 0);
6683 return 0;6683 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t