Commit 02f24358 authored by Steve French's avatar Steve French

do not block (writing back to the filesystem potentially) while allocating smb buffers

parent e3b4af47
......@@ -182,7 +182,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
daemonize("cifsd");
allow_signal(SIGKILL);
current->flags |= PF_MEMALLOC;
server->tsk = current; /* save process info to wake at shutdown */
cFYI(1, ("Demultiplex PID: %d", current->pid));
......@@ -881,6 +881,7 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket)
} else {
/* BB other socket options to set KEEPALIVE, NODELAY? */
cFYI(1,("Socket created"));
/* (*csocket)->sk->allocation = GFP_NOFS; */ /* BB is there equivalent in 2.6 */
}
}
......
......@@ -153,7 +153,7 @@ cifs_buf_get(void)
albeit slightly larger than necessary and maxbuffersize
defaults to this and can not be bigger */
ret_buf =
(struct smb_hdr *) kmem_cache_alloc(cifs_req_cachep, SLAB_KERNEL);
(struct smb_hdr *) kmem_cache_alloc(cifs_req_cachep, SLAB_KERNEL | SLAB_NOFS);
/* clear the first few header bytes */
if (ret_buf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment