Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754467AbXLRUVd (ORCPT ); Tue, 18 Dec 2007 15:21:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752768AbXLRUTy (ORCPT ); Tue, 18 Dec 2007 15:19:54 -0500 Received: from mx1.redhat.com ([66.187.233.31]:37248 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbXLRUTo (ORCPT ); Tue, 18 Dec 2007 15:19:44 -0500 From: Jeff Layton To: linux-nfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org, nfsv4@linux-nfs.org Subject: [PATCH 5/7] NLM: Have lockd call try_to_freeze Date: Tue, 18 Dec 2007 15:19:40 -0500 Message-Id: <1198009182-27895-6-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.5.3.3 In-Reply-To: <1198009182-27895-5-git-send-email-jlayton@redhat.com> References: <1198009182-27895-1-git-send-email-jlayton@redhat.com> <1198009182-27895-2-git-send-email-jlayton@redhat.com> <1198009182-27895-3-git-send-email-jlayton@redhat.com> <1198009182-27895-4-git-send-email-jlayton@redhat.com> <1198009182-27895-5-git-send-email-jlayton@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 857 Lines: 30 lockd makes itself freezable, but never calls try_to_freeze(). Have it call try_to_freeze() within the main loop. Signed-off-by: Jeff Layton --- fs/lockd/svc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 0f4148a..03a83a0 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -155,6 +155,9 @@ lockd(struct svc_rqst *rqstp) long timeout = MAX_SCHEDULE_TIMEOUT; char buf[RPC_MAX_ADDRBUFLEN]; + if (try_to_freeze()) + continue; + if (signalled()) { flush_signals(current); if (nlmsvc_ops) { -- 1.5.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/