Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
592dbf58
Commit
592dbf58
authored
Oct 10, 2002
by
Benjamin LaHaise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up whitespace and patch import errors from net-kiocb patch
parent
2bd7288e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
include/net/sock.h
include/net/sock.h
+0
-24
net/socket.c
net/socket.c
+2
-2
No files found.
include/net/sock.h
View file @
592dbf58
...
...
@@ -318,30 +318,6 @@ static inline struct kiocb *siocb_to_kiocb(struct sock_iocb *si)
return
container_of
((
void
*
)
si
,
struct
kiocb
,
private
);
}
/* sock_iocb: used to kick off async processing of socket ios */
struct
sock_iocb
{
struct
list_head
list
;
int
flags
;
int
size
;
struct
socket
*
sock
;
struct
sock
*
sk
;
struct
msghdr
*
msg
,
async_msg
;
struct
iovec
async_iov
;
struct
scm_cookie
*
scm
,
async_scm
;
};
static
inline
struct
sock_iocb
*
kiocb_to_siocb
(
struct
kiocb
*
iocb
)
{
BUG_ON
(
sizeof
(
struct
sock_iocb
)
>
KIOCB_PRIVATE_SIZE
);
return
(
struct
sock_iocb
*
)
iocb
->
private
;
}
static
inline
struct
kiocb
*
siocb_to_kiocb
(
struct
sock_iocb
*
si
)
{
return
container_of
((
void
*
)
si
,
struct
kiocb
,
private
);
}
/* Used by processes to "lock" a socket state, so that
* interrupts and bottom half handlers won't change it
* from under us. It essentially blocks any incoming
...
...
net/socket.c
View file @
592dbf58
...
...
@@ -117,7 +117,7 @@ static ssize_t sock_sendpage(struct file *file, struct page *page,
static
struct
file_operations
socket_file_ops
=
{
.
llseek
=
no_llseek
,
.
aio_read
=
sock_aio_read
,
.
aio_read
=
sock_aio_read
,
.
aio_write
=
sock_aio_write
,
.
poll
=
sock_poll
,
.
ioctl
=
sock_ioctl
,
...
...
@@ -541,7 +541,7 @@ int sock_sendmsg(struct socket *sock, struct msghdr *msg, int size)
struct
kiocb
iocb
;
int
ret
;
init_sync_kiocb
(
&
iocb
,
NULL
);
init_sync_kiocb
(
&
iocb
,
NULL
);
ret
=
__sock_sendmsg
(
&
iocb
,
sock
,
msg
,
size
);
if
(
-
EIOCBQUEUED
==
ret
)
ret
=
wait_on_sync_kiocb
(
&
iocb
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment