Date: Fri, 26 Aug 2022 03:18:15 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Ganbold Tsagaankhuu <ganbold@gmail.com>, freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: NFS issue - newnfs_request: Wrong session srvslot=1 slot=0, freeing free slot!! Message-ID: <YT4PR01MB9736383BF3B6F85D90115BA2DD759@YT4PR01MB9736.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <CAGtf9xNNCQLsWSN%2BspZmE8cQJ6UDTcdNcURbZxGdEo4-qZxn1A@mail.gmail.com> References: <CAGtf9xNNCQLsWSN%2BspZmE8cQJ6UDTcdNcURbZxGdEo4-qZxn1A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--_002_YT4PR01MB9736383BF3B6F85D90115BA2DD759YT4PR01MB9736CANP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ganbold Tsagaankhuu <ganbold@gmail.com> wrote:=0A= > Hi,=0A= > =0A= > We are having trouble with NFS running on STABLE:=0A= > =0A= > Aug 26 02:21:42 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D0=0A= > Aug 26 02:21:42 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:21:43 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D0=0A= > Aug 26 02:21:43 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:21:54 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D0=0A= > Aug 26 02:21:54 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:21:58 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D2=0A= > Aug 26 02:21:58 iron2 kernel: retseq diff 0x1=0A= > Aug 26 02:21:58 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:21:59 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D2=0A= > Aug 26 02:21:59 iron2 kernel: retseq diff 0x1=0A= > Aug 26 02:21:59 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:12 iron2 kernel: newnfs_request: Wrong session srvslot=3D0 s= lot=3D2=0A= > Aug 26 02:22:12 iron2 kernel: retseq diff 0x1=0A= > Aug 26 02:22:12 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:14 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D0=0A= > Aug 26 02:22:14 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:15 iron2 kernel: newnfs_request: Bad session slot=3D1=0A= > Aug 26 02:22:15 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:30 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D2=0A= > Aug 26 02:22:30 iron2 kernel: retseq diff 0x1=0A= > Aug 26 02:22:30 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:31 iron2 kernel: newnfs_request: Bad session slot=3D1=0A= > Aug 26 02:22:31 iron2 kernel: freeing free slot!!=0A= > Aug 26 02:22:46 iron2 kernel: newnfs_request: Wrong session srvslot=3D1 s= lot=3D0=0A= > Aug 26 02:22:46 iron2 kernel: freeing free slot!!=0A= > =0A= > We are running FreeBSD 13.1-STABLE #3 stable/13-n252198-c1434fd2dea: Fri = Aug 26 01:51:53 UTC 2022 and mount options are:=0A= > =0A= > rw,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5=0A= > ro,nfsv4,minorversion=3D1,bg,soft,timeo=3D20,retrans=3D5,retrycnt=3D5=0A= > =0A= > Is there any fix for this issue?=0A= - Don't use "soft" mounts. See the Bugs section of "man mount_nfs".=0A= There are patches in stable/13 dated July 10, 2022. (I have no idea=0A= how to tell if n252198 would have them) that help, but use of "soft"=0A= mounts will never work correctly for NFSv4.=0A= - The attached small patch (not committed yet, but should be in=0A= stable/13 in about 10days) fixes a couple of corner cases. If you=0A= are using a FreeBSD NFS server, I believe these corner cases only=0A= occur after the NFS server reboots.=0A= =0A= rick=0A= ps: If you test the attached patch, please let me know how it goes.=0A= =0A= thanks a lot,=0A= =0A= Ganbold=0A= =0A= --_002_YT4PR01MB9736383BF3B6F85D90115BA2DD759YT4PR01MB9736CANP_ Content-Type: application/octet-stream; name="slotpos.patch" Content-Description: slotpos.patch Content-Disposition: attachment; filename="slotpos.patch"; size=896; creation-date="Fri, 26 Aug 2022 03:17:11 GMT"; modification-date="Fri, 26 Aug 2022 03:17:11 GMT" Content-Transfer-Encoding: base64 LS0tIHN5cy9mcy9uZnMvbmZzX2NvbW1vbmtycGMuYy5zbG90cG9zCTIwMjItMDgtMjUgMTU6NTY6 MzUuMDYxNzI1MDAwIC0wNzAwCisrKyBzeXMvZnMvbmZzL25mc19jb21tb25rcnBjLmMJMjAyMi0w OC0yNSAxNjowNDo0OS40NDc1NzEwMDAgLTA3MDAKQEAgLTEwODIsMTIgKzEwODIsMTIgQEAgcHJp bnRmKCJEaXNhYmxlIHNsb3Q9JWRcbiIsIG5kLT5uZF9zbG90aWQpOwogCQkJCQkJICAgIH0KIAkJ CQkJCSAgICBzbG90ID0gbmQtPm5kX3Nsb3RpZDsKIAkJCQkJCX0KKwkJCQkJCWZyZWVzbG90ID0g c2xvdDsKIAkJCQkJfSBlbHNlIGlmIChzbG90ICE9IDApIHsKIAkJCQkJCXByaW50ZigibmV3bmZz X3JlcXVlc3Q6IEJhZCAiCiAJCQkJCQkgICAgInNlc3Npb24gc2xvdD0lZFxuIiwgc2xvdCk7CiAJ CQkJCQlzbG90ID0gMDsKIAkJCQkJfQotCQkJCQlmcmVlc2xvdCA9IHNsb3Q7CiAJCQkJCWlmIChy ZXRzZXEgIT0gc2VwLT5uZnNlc3Nfc2xvdHNlcVtzbG90XSkKIAkJCQkJCXByaW50ZigicmV0c2Vx IGRpZmYgMHgleFxuIiwKIAkJCQkJCSAgICByZXRzZXEpOwpAQCAtMTE3Miw2ICsxMTcyLDkgQEAg cHJpbnRmKCJuZnNfY29tbW9ua3JwYzogaW5pdGlhdGUgcmVjb3ZlcnlcbiIpOwogCQkJCQkJKnRs KysgPSB0eGRyX3Vuc2lnbmVkKHNsb3RzZXEpOwogCQkJCQkJKnRsKysgPSB0eGRyX3Vuc2lnbmVk KHNsb3Rwb3MpOwogCQkJCQkJKnRsID0gdHhkcl91bnNpZ25lZChtYXhzbG90KTsKKwkJCQkJCWlm ICgobmQtPm5kX2ZsYWcgJgorCQkJCQkJICAgIE5EX0hBU1NMT1RJRCkgIT0gMCkKKwkJCQkJCQlu ZC0+bmRfc2xvdGlkID0gc2xvdHBvczsKIAkJCQkJfQogCQkJCQlpZiAocmV0ZXJyID09IE5GU0VS Ul9CQURTRVNTSU9OIHx8CiAJCQkJCSAgICByZXRlcnIgPT0gMCkgewo= --_002_YT4PR01MB9736383BF3B6F85D90115BA2DD759YT4PR01MB9736CANP_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YT4PR01MB9736383BF3B6F85D90115BA2DD759>