pastebin - collaborative debugging tool
rovema.kpaste.net RSS


debian11bullseye_linux6_6_85rt53_update.ksh
Posted by Anonymous on Mon 7th Apr 2025 12:22
raw | new post

  1. $ ksh -x -c 'for i in  *.ksh *.patch ; do cat "$i" ; done'
  2. + cat debian11bullseye_linux6_6_85rt53_update.ksh
  3. #!/bin/ksh93
  4.  
  5. #
  6. # debian11bullseye_linux6_6_85rt53_update.ksh - build a
  7. # Debian 11-compatible Linux v6.6.85-rt53 kernel
  8. #
  9.  
  10. set -o xtrace
  11. set -o nounset
  12. set -o errexit
  13. git -c 'checkout.workers=16' clone -b 'v6.6.85-rt53' --single-branch 'git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git'
  14.  
  15. cd linux-stable-rt
  16.  
  17. #patch -p1 <'../0001_nfsd_NFSD_MAX_OPS_PER_COMPOUND_128.patch'
  18. #patch -p1 <'../0001-nfsd-PUTPUBFH-is-supported-in-NFSv4.1-and-NFSv4.patch'
  19. patch -p1 <'../0001_rpcsvc_RPCSVC_MAXPAYLOAD_16M.patch'
  20.  
  21. cp ../debian11_linuxv6_6_85_rt53_32bit.config .config
  22.  
  23. time nice -n 19 chrt --idle 0 ksh -c 'CC="gcc -m32" make -j12 bindeb-pkg 2>&1 | tee buildlog.log'
  24.  
  25. # EOF.
  26. + cat 0001_nfsd_NFSD_MAX_OPS_PER_COMPOUND_128.patch
  27. diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
  28. index cbddcf484dba..4d047f6e135d 100644
  29. --- a/fs/nfsd/state.h
  30. +++ b/fs/nfsd/state.h
  31. @@ -175,7 +175,7 @@ static inline struct nfs4_delegation *delegstateid(struct nfs4_stid *s)
  32.  /* Maximum number of slots per session. 160 is useful for long haul TCP */
  33.  #define NFSD_MAX_SLOTS_PER_SESSION     160
  34.  /* Maximum number of operations per session compound */
  35. -#define NFSD_MAX_OPS_PER_COMPOUND      50
  36. +#define NFSD_MAX_OPS_PER_COMPOUND      128
  37.  /* Maximum  session per slot cache size */
  38.  #define NFSD_SLOT_CACHE_SIZE           2048
  39.  /* Maximum number of NFSD_SLOT_CACHE_SIZE slots per session */
  40. + cat 0001-nfsd-PUTPUBFH-is-supported-in-NFSv4.1-and-NFSv4.patch
  41. From 8e4a26198664fad3b6ac328112307b5f35b2c8e9 Mon Sep 17 00:00:00 2001
  42. From: Cedric Blancher <cedric.blancher@gmail.com>
  43. Date: Wed, 10 Jul 2024 00:45:34 +0200
  44. Subject: [PATCH] nfsd: PUTPUBFH is supported in NFSv4.1 and NFSv4.
  45.  
  46. PUTPUBFH is supported in NFSv4.1 and NFSv4.2, not only in NFSv4.0.
  47.  
  48. Reviewed-by: Dan Shelton <dan.f.shelton@gmail.com>
  49. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  50. ---
  51.  fs/nfsd/nfs4xdr.c | 2 +-
  52.  1 file changed, 1 insertion(+), 1 deletion(-)
  53.  
  54. diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
  55. index 92c7dde148a4..14ecac05c91f 100644
  56. --- a/fs/nfsd/nfs4xdr.c
  57. +++ b/fs/nfsd/nfs4xdr.c
  58. @@ -1248,7 +1248,7 @@ nfsd4_decode_putfh(struct nfsd4_compoundargs *argp, union nfsd4_op_u *u)
  59.  static __be32
  60.  nfsd4_decode_putpubfh(struct nfsd4_compoundargs *argp, union nfsd4_op_u *p)
  61.  {
  62. -       if (argp->minorversion == 0)
  63. +       if ((argp->minorversion >= 0) && (argp->minorversion <= 2))
  64.                 return nfs_ok;
  65.         return nfserr_notsupp;
  66.  }
  67. --
  68. 2.30.2
  69.  
  70. + cat 0001_rpcsvc_RPCSVC_MAXPAYLOAD_16M.patch
  71. diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
  72. index 3d8b215f32d5..60caf9b4d762 100644
  73. --- a/include/linux/sunrpc/svc.h
  74. +++ b/include/linux/sunrpc/svc.h
  75. @@ -145,7 +145,7 @@ static inline void svc_put(struct svc_serv *serv)
  76.   * have larger limits, but those numbers are probably beyond
  77.   * the point of diminishing returns.
  78.   */
  79. -#define RPCSVC_MAXPAYLOAD      (1*1024*1024u)
  80. +#define RPCSVC_MAXPAYLOAD      (16*1024*1024u)
  81.  #define RPCSVC_MAXPAYLOAD_TCP  RPCSVC_MAXPAYLOAD
  82.  #define RPCSVC_MAXPAYLOAD_UDP  (32*1024u)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at