RDSRDMA: Fix cleanup of rds_iw_mr_pool
Subsystems (2)
PATCH 1/1 RDSRDMA: Fix cleanup of rds_iw_mr_pool
Quoted 11 lines · Jonathan Lallinger
In the
rds_iw_mr_poolstruct thefree_pinnedfield keeps track of memory pinned by free MRs. While this field is incremented properly upon allocation, it is never decremented upon unmapping. This would cause therds_rdmamodule to crash the kernel upon unloading, by triggering theBUG_ONin therds_iw_destroy_mr_poolfunction.This change keeps track of the MRs that become unpinned, so that
free_pinnedcan be decremented appropriately.Signed-off-by Jonathan Lallinger<[email protected]>Signed-off-by Steve Wise<[email protected]>
Venkat
Quoted 7 lines · Venkat Venkatsubra
Quoted 6 lines · Jonathan Lallinger
In the
rds_iw_mr_poolstruct thefree_pinnedfield keeps track of memory pinned by free MRs. While this field is incremented properly upon allocation, it is never decremented upon unmapping. This would cause therds_rdmamodule to crash the kernel upon unloading, by triggering theBUG_ONin therds_iw_destroy_mr_poolfunction.
Quoted 9 lines
Quoted 5 lines
This change keeps track of the MRs that become unpinned, so that
free_pinnedcan be decremented appropriately.Signed-off-by Jonathan Lallinger<[email protected]>Signed-off-by Steve Wise<[email protected]>Signed-off-by Venkat Venkatsubra<[email protected]>Venkat
Hey Dave,
Is this sufficient for you to pull/merge the patch upstream? Or should Venkat, the new RDS maintainer, do something else? Like maybe coalesce patches into a git repos and ask you to pull them in? I'm not sure what process you had with the old RDS maintainer.
There's another patch too from Jonathan Lallinger that fixes an RDS crash titled:
[PATCH] RDSRDMA: Fix to PAGE_MASK interpretation
Both have been signed off by Venkat and reviewed by me.
Thanks,
Steve.
David Miller
maintainerFrom: Steve Wise <[email protected]>
Date: Fri, 09 Sep 2011 14:01:53 -0500
Quoted 1 line
Is this sufficient for you to pull/merge the patch upstream?
It's all queued up in patchwork, so I don't see why not.
A message that is not in the archive (sent off-list or not yet received): [email protected]
David Miller
maintainerRe: Recall: [PATCH] RDSRDMA: Fix cleanup of rds_iw_mr_pool
From: Jonathan Lallinger <[email protected]>
Date: Tue, 13 Sep 2011 12:51:45 -0500
Quoted 2 lines
I screwed up and submitted the wrong patch, if you could please remove this patch from the queue and I will resubmit the correct patch.
Ok, done.
In the future, please always CC: netdev when you are communicating with me about networking patches.