lkml.org 
[lkml]   [1998]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectNFS and BTTV test code: Please test these
From

Hi,

The following patch seems to cure the problem of sigmasks not being
properly set in NFS write requests in 2.1.117-ac1 that I reported
earlier today. It protects the synchronous call that is made when the
server is congested. Is this fix correct Alan?

Cheers,
Trond

--- linux-2.1.117-ac1/fs/nfs/write.c-2.1.117-ac1 Mon Aug 24 17:54:21 1998
+++ linux-2.1.117-ac1/fs/nfs/write.c Mon Aug 24 17:58:22 1998
@@ -442,11 +442,15 @@
sync = 1;

if (sync) {
+ sigset_t oldmask;
+ struct rpc_clnt *clnt = NFS_CLIENT(inode);
dprintk("NFS: %4d schedule_write_request (sync)\n",
task->tk_pid);
/* Page is already locked */
req->wb_flags |= NFS_WRITE_LOCKED;
+ rpc_clnt_sigmask(clnt, &oldmask);
rpc_execute(task);
+ rpc_clnt_sigunmask(clnt, &oldmask);
} else {
dprintk("NFS: %4d schedule_write_request (async)\n",
task->tk_pid);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.058 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site