[PATCH] v9fs: return the correct error when interrupted by signal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If a signal interrupts the user process, v9fs sends a flush request to the
file server and waits for its response. It error code is incorrectly set to
the error code of the flush message instead of ERESTARTSYS. The patch sets
the error code to the correct value.

Signed-off-by: Latchesar Ionkov <[email protected]>

---
commit c675b970b2befed791fa29f606852e205a009e62
tree 01b2f255baa2245d10e01756e981368a39401669
parent fcc18e83e1f6fd9fa6b333735bf0fcd530655511
author Latchesar Ionkov <[email protected]> Mon, 26 Jun 2006 11:06:02 -0600
committer Latchesar Ionkov <[email protected]> Mon, 26 Jun 2006 11:06:02 -0600

 fs/9p/mux.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/9p/mux.c b/fs/9p/mux.c
index f4407eb..210d2c0 100644
--- a/fs/9p/mux.c
+++ b/fs/9p/mux.c
@@ -932,6 +932,8 @@ v9fs_mux_rpc(struct v9fs_mux_data *m, st
 					r.rcall || r.err);
 			} while (!r.rcall && !r.err && err==-ERESTARTSYS &&
 				m->trans->status==Connected && !m->err);
+
+			err = -ERESTARTSYS;
 		}
 		sigpending = 1;
 	}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux