From: Greg Kroah-Hartman Date: Mon, 26 Mar 2012 23:47:40 +0000 (-0700) Subject: 3.3-stable patches X-Git-Tag: v3.0.27~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5185da969dcae99b6c4eb4904ce2b3a0dd46d88c;p=thirdparty%2Fkernel%2Fstable-queue.git 3.3-stable patches added patches: nfsv4-rate-limit-the-state-manager-warning-messages.patch --- diff --git a/queue-3.3/nfsv4-rate-limit-the-state-manager-warning-messages.patch b/queue-3.3/nfsv4-rate-limit-the-state-manager-warning-messages.patch new file mode 100644 index 00000000000..eb18c8e6866 --- /dev/null +++ b/queue-3.3/nfsv4-rate-limit-the-state-manager-warning-messages.patch @@ -0,0 +1,72 @@ +From 9a3ba432330e504ac61ff0043dbdaba7cea0e35a Mon Sep 17 00:00:00 2001 +From: Trond Myklebust +Date: Mon, 12 Mar 2012 18:01:48 -0400 +Subject: NFSv4: Rate limit the state manager warning messages + +From: Trond Myklebust + +commit 9a3ba432330e504ac61ff0043dbdaba7cea0e35a upstream. + +Prevent the state manager from filling up system logs when recovery +fails on the server. + +Signed-off-by: Trond Myklebust +Signed-off-by: Greg Kroah-Hartman + +--- + fs/nfs/callback_xdr.c | 4 +++- + fs/nfs/nfs4proc.c | 2 +- + fs/nfs/nfs4state.c | 4 ++-- + 3 files changed, 6 insertions(+), 4 deletions(-) + +--- a/fs/nfs/callback_xdr.c ++++ b/fs/nfs/callback_xdr.c +@@ -9,6 +9,8 @@ + #include + #include + #include ++#include ++#include + #include + #include + #include "nfs4_fs.h" +@@ -167,7 +169,7 @@ static __be32 decode_compound_hdr_arg(st + if (hdr->minorversion <= 1) { + hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 */ + } else { +- printk(KERN_WARNING "%s: NFSv4 server callback with " ++ pr_warn_ratelimited("NFS: %s: NFSv4 server callback with " + "illegal minor version %u!\n", + __func__, hdr->minorversion); + return htonl(NFS4ERR_MINOR_VERS_MISMATCH); +--- a/fs/nfs/nfs4proc.c ++++ b/fs/nfs/nfs4proc.c +@@ -1845,7 +1845,7 @@ static struct nfs4_state *nfs4_do_open(s + * the user though... + */ + if (status == -NFS4ERR_BAD_SEQID) { +- printk(KERN_WARNING "NFS: v4 server %s " ++ pr_warn_ratelimited("NFS: v4 server %s " + " returned a bad sequence-id error!\n", + NFS_SERVER(dir)->nfs_client->cl_hostname); + exception.retry = 1; +--- a/fs/nfs/nfs4state.c ++++ b/fs/nfs/nfs4state.c +@@ -996,7 +996,7 @@ static void nfs_increment_seqid(int stat + case -NFS4ERR_BAD_SEQID: + if (seqid->sequence->flags & NFS_SEQID_CONFIRMED) + return; +- printk(KERN_WARNING "NFS: v4 server returned a bad" ++ pr_warn_ratelimited("NFS: v4 server returned a bad" + " sequence-id error on an" + " unconfirmed sequence %p!\n", + seqid->sequence); +@@ -1826,7 +1826,7 @@ static void nfs4_state_manager(struct nf + } while (atomic_read(&clp->cl_count) > 1); + return; + out_error: +- printk(KERN_WARNING "Error: state manager failed on NFSv4 server %s" ++ pr_warn_ratelimited("NFS: state manager failed on NFSv4 server %s" + " with error %d\n", clp->cl_hostname, -status); + nfs4_end_drain_session(clp); + nfs4_clear_state_manager_bit(clp); diff --git a/queue-3.3/series b/queue-3.3/series index 02f7286bdca..76198f2c1ad 100644 --- a/queue-3.3/series +++ b/queue-3.3/series @@ -131,3 +131,4 @@ pm-shmobile-make-cmt-driver-use-pm_genpd_dev_always_on.patch pm-shmobile-make-mtu2-driver-use-pm_genpd_dev_always_on.patch rtlwifi-convert-to-asynchronous-firmware-load.patch staging-r8712u-add-missing-initialization-and-remove-configuration-parameter-config_r8712_ap.patch +nfsv4-rate-limit-the-state-manager-warning-messages.patch