mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
[PATCH] smbfs: Make conn_pid a struct pid
smbfs keeps track of the user space server process in conn_pid. This converts that track to use a struct pid instead of pid_t. This keeps us safe from pid wrap around issues and prepares the way for the pid namespace. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
3cec556a84
commit
a71113da44
4 changed files with 10 additions and 8 deletions
|
@ -482,12 +482,13 @@ smb_put_super(struct super_block *sb)
|
|||
smb_close_socket(server);
|
||||
|
||||
if (server->conn_pid)
|
||||
kill_proc(server->conn_pid, SIGTERM, 1);
|
||||
kill_pid(server->conn_pid, SIGTERM, 1);
|
||||
|
||||
kfree(server->ops);
|
||||
smb_unload_nls(server);
|
||||
sb->s_fs_info = NULL;
|
||||
smb_unlock_server(server);
|
||||
put_pid(server->conn_pid);
|
||||
kfree(server);
|
||||
}
|
||||
|
||||
|
@ -530,7 +531,7 @@ static int smb_fill_super(struct super_block *sb, void *raw_data, int silent)
|
|||
INIT_LIST_HEAD(&server->xmitq);
|
||||
INIT_LIST_HEAD(&server->recvq);
|
||||
server->conn_error = 0;
|
||||
server->conn_pid = 0;
|
||||
server->conn_pid = NULL;
|
||||
server->state = CONN_INVALID; /* no connection yet */
|
||||
server->generation = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue