From 463feb272c4072fec2f75c13fecd8d1cb79dcded Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sun, 12 Jun 2016 14:21:25 +0800 Subject: [PATCH] server: return after respond_to_request() for EROFS Respond_to_request will do cleanup jobs, thus we shall stall and exit under this case. Signed-off-by: xie xingguo --- src/mds/Server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index b799684d2428..d68499bbb6a0 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2879,6 +2879,7 @@ void Server::handle_client_open(MDRequestRef& mdr) if ((cmode & CEPH_FILE_MODE_WR) && mdcache->is_readonly()) { dout(7) << "read-only FS" << dendl; respond_to_request(mdr, -EROFS); + return; } set rdlocks, wrlocks, xlocks; -- 2.47.3