From: xie xingguo Date: Sun, 12 Jun 2016 06:21:25 +0000 (+0800) Subject: server: return after respond_to_request() for EROFS X-Git-Tag: v11.0.0~177^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=463feb272c4072fec2f75c13fecd8d1cb79dcded;p=ceph.git 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 --- 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;