diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-12-06 16:24:39 -0500 |
---|---|---|
committer | Matthew Wilcox <willy@linux.intel.com> | 2007-12-06 17:40:25 -0500 |
commit | 150030b78a454ba50d5e267b0dcf01b162809192 (patch) | |
tree | 4de766e7abbfd73a052f14f8efd3a26eb7b59d87 /include/linux/nfs_fs.h | |
parent | 009e577e079656d51d0fe9b15e61e41b00816c29 (diff) |
NFS: Switch from intr mount option to TASK_KILLABLE
By using the TASK_KILLABLE infrastructure, we can get rid of the 'intr'
mount option. We have to use _killable everywhere instead of _interruptible
as we get rid of rpc_clnt_sigmask/sigunmask.
Signed-off-by: Liam R. Howlett <howlett@gmail.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 2d15d4aac094..2814bd40edf6 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -516,14 +516,7 @@ extern void * nfs_root_data(void); | |||
516 | 516 | ||
517 | #define nfs_wait_event(clnt, wq, condition) \ | 517 | #define nfs_wait_event(clnt, wq, condition) \ |
518 | ({ \ | 518 | ({ \ |
519 | int __retval = 0; \ | 519 | int __retval = wait_event_killable(wq, condition); \ |
520 | if (clnt->cl_intr) { \ | ||
521 | sigset_t oldmask; \ | ||
522 | rpc_clnt_sigmask(clnt, &oldmask); \ | ||
523 | __retval = wait_event_interruptible(wq, condition); \ | ||
524 | rpc_clnt_sigunmask(clnt, &oldmask); \ | ||
525 | } else \ | ||
526 | wait_event(wq, condition); \ | ||
527 | __retval; \ | 520 | __retval; \ |
528 | }) | 521 | }) |
529 | 522 | ||