summaryrefslogtreecommitdiffstats
path: root/fs/nfs.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-30 10:48:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-30 11:08:46 +0200
commit63113ca4a802ac7f8956d4ce496c1ff634f08001 (patch)
treea69d781b41fffee73a1ec45598c27a55c1466f80 /fs/nfs.c
parent9d37fa6736cb8e2e8c8bef218512bd16ea48c1e6 (diff)
downloadbarebox-63113ca4a802ac7f8956d4ce496c1ff634f08001.tar.gz
barebox-63113ca4a802ac7f8956d4ce496c1ff634f08001.tar.xz
nfs: Do not allow to abort
When ctrl-c is pressed then ctrlc() will return true until ctrlc_handled() is called. This means that once ctrl-c is pressed every NFS operation will fail until the upper layer calls ctrlc_handled(). When for example we are doing a 'ls -l' on an NFS directory then after a ctrl-c press not the 'ls -l' aborts, but instead the retrieving of the directory entries which is not what we want. Simply do not call ctrlc() in the fs layer. the NFS timeout is 2 seconds which we have to wait until we have a chance to abort. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/nfs.c')
-rw-r--r--fs/nfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs.c b/fs/nfs.c
index a5fc6467fb..227a4866d7 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -450,9 +450,6 @@ again:
nfs_timer_start = get_time_ns();
while (1) {
- if (ctrlc())
- return ERR_PTR(-EINTR);
-
net_poll();
if (is_timeout(nfs_timer_start, NFS_TIMEOUT)) {