Skip to contentSkip to conversation

NFS: Remove use of the Big Kernel Lock around calls to rpc_execute.

PATCH Applied Frank Filz 2 participants 2 messages Oct 17, 2006 – Oct 18, 2006

Subsystems (2)
lore
Share & tools
lore

Frank Filz

author
#0 lore raw

PATCH 2/4 NFS: Remove use of the Big Kernel Lock around calls to rpc_execute.

Remove use of the Big Kernel Lock around calls to rpc_execute.

### Diffstat output

 direct.c |    6 ------
 read.c   |    2 --
 write.c  |    2 --
 3 files changed, 10 deletions(-)
fs/nfs/direct.c +0 -2
index 9f7f8b9..ff943ab 100644
@@ -307,9 +307,7 @@ static ssize_t nfs_direct_read_schedule(
 
 		data->task.tk_cookie = (unsigned long) inode;
 
-		lock_kernel();
 		rpc_execute(&data->task);
-		unlock_kernel();
 
 		dfprintk(VFS, "NFS: %5u initiated direct read call (req %s/%Ld, %zu

bytes @ offset %Lu)\n",
data->task.tk_pid,
@@ -475,9 +473,7 @@ static void nfs_direct_commit_schedule(s

dprintk("NFS: %5u initiated commit call\n", data->task.tk_pid);

- lock_kernel();
rpc_execute(&data->task);
- unlock_kernel();
}

static void nfs_direct_write_complete(struct nfs_direct_req *dreq,
struct inode *inode)
@@ -637,9 +633,7 @@ static ssize_t nfs_direct_write_schedule
data->task.tk_priority = RPC_PRIORITY_NORMAL; data->task.tk_cookie = (unsigned long) inode;

- lock_kernel();
rpc_execute(&data->task);
- unlock_kernel();

dfprintk(VFS, "NFS: %5u initiated direct write call (req %s/%Ld, %zu
bytes @ offset %Lu)\n",
data->task.tk_pid,

fs/nfs/read.c +0 -2
index c2e49c3..9ca6910 100644
@@ -316,9 +316,7 @@ static void nfs_execute_read(struct nfs_
 	sigset_t oldset;
 
 	rpc_clnt_sigmask(clnt, &oldset);
-	lock_kernel();
 	rpc_execute(&data->task);
-	unlock_kernel();
 	rpc_clnt_sigunmask(clnt, &oldset);
 }
 
fs/nfs/write.c +0 -2
index f6675d2..3d0470b 100644
@@ -977,9 +977,7 @@ static void nfs_execute_write(struct nfs
 	sigset_t oldset;
 
 	rpc_clnt_sigmask(clnt, &oldset);
-	lock_kernel();
 	rpc_execute(&data->task);
-	unlock_kernel();
 	rpc_clnt_sigunmask(clnt, &oldset);
 }
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 2 lines · Frank Filz

Remove use of the Big Kernel Lock around calls to rpc_execute.

This one had been seriously mangled by your emailer... I've been able to piece it together and apply, though...

Cheers,
Trond

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs