FreeBSD Bugzilla – Attachment 6840 Details for
Bug 15222
mbuf leak in nfs_srvcache.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 938 bytes, created by
iedowse
on 1999-12-02 18:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
iedowse
Created:
1999-12-02 18:00:01 UTC
Size:
938 bytes
patch
obsolete
>--- nfs_srvcache.c.orig Thu Dec 2 16:22:37 1999 >+++ nfs_srvcache.c Thu Dec 2 16:49:44 1999 >@@ -293,6 +293,19 @@ > goto loop; > } > rp->rc_flag |= RC_LOCKED; >+ if (rp->rc_state == RC_DONE) { >+ /* >+ * This can happen if the cache is too small; >+ * retransmits of the same request aren't >+ * dropped so we see the operation completing >+ * more than once. >+ * XXX maybe increase desirednfsrvcache here. >+ */ >+ if (rp->rc_flag & RC_REPMBUF) { >+ m_freem(rp->rc_reply); >+ rp->rc_flag &= ~RC_REPMBUF; >+ } >+ } > rp->rc_state = RC_DONE; > /* > * If we have a valid reply update status and save >@@ -332,6 +345,10 @@ > nextrp = rp->rc_lru.tqe_next; > LIST_REMOVE(rp, rc_hash); > TAILQ_REMOVE(&nfsrvlruhead, rp, rc_lru); >+ if (rp->rc_flag & RC_REPMBUF) >+ m_freem(rp->rc_reply); >+ if (rp->rc_flag & RC_NAM) >+ free(rp->rc_nam, M_SONAME); > free(rp, M_NFSD); > } > numnfsrvcache = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15222
: 6840