From: Jeff Layton <jlayton@redhat.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org,
linux-pm@vger.kernel.org, tj@kernel.org, john@calva.com,
trond.myklebust@netapp.com, marek.belisko@gmail.com,
awilliam@redhat.com
Subject: Re: [PATCH] sunrpc/nfs: don't allow TASK_KILLABLE sleeps to block the freezer
Date: Fri, 23 Dec 2011 08:11:49 -0500 [thread overview]
Message-ID: <20111223081149.7fdbcaa1@tlielax.poochiereds.net> (raw)
In-Reply-To: <201112012252.13568.rjw@sisk.pl>
On Thu, 1 Dec 2011 22:52:13 +0100
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> On Thursday, December 01, 2011, Jeff Layton wrote:
> > Allow the freezer to skip wait_on_bit_killable sleeps in the sunrpc
> > layer. This should allow suspend and hibernate events to proceed, even
> > when there are RPC's pending on the wire.
> >
> > Also, wrap the TASK_KILLABLE sleeps in NFS layer in freezer_do_not_count
> > and freezer_count calls. This allows the freezer to skip tasks that are
> > sleeping while looping on EJUKEBOX or NFS4ERR_DELAY sorts of errors.
> >
> > Rafael, I've gone ahead and combined the two patches into one here
> > and rebased this on top of the pm-freezer branch. Let me know if you'd
> > prefer to keep it as two patches.
>
> One patch is just fine for me, applied to linux-pm/linux-next.
>
> Thanks,
> Rafael
>
>
-------------------[snip]----------------
> > +
> > +/* Like schedule_timeout_killable(), but should not block the freezer. */
> > +#define freezable_schedule_timeout_killable(timeout) \
> > +({ \
> > + freezer_do_not_count(); \
> > + schedule_timeout_killable(timeout); \
> > + freezer_count(); \
> > +})
> > +
Whoops...I just noticed a problem with this patch.
freezable_schedule_timeout_killable does not return the return code
from schedule_timeout_killable. Would you prefer for me to respin this
patch, or send a new patch on top of this one that just fixes that bug?
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2011-12-23 13:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 21:33 Jeff Layton
2011-12-01 21:52 ` Rafael J. Wysocki
2011-12-23 13:11 ` Jeff Layton [this message]
2011-12-23 22:37 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111223081149.7fdbcaa1@tlielax.poochiereds.net \
--to=jlayton@redhat.com \
--cc=awilliam@redhat.com \
--cc=john@calva.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marek.belisko@gmail.com \
--cc=rjw@sisk.pl \
--cc=tj@kernel.org \
--cc=trond.myklebust@netapp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®