Skip to contentSkip to conversation

RDSRDMA: Fix cleanup of rds_iw_mr_pool

PATCH In review Venkat Venkatsubra 3 participants 4 messages Sep 9, 2011 – Sep 13, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDSRDMA: Fix cleanup of rds_iw_mr_pool

Quoted 11 lines · Jonathan Lallinger

In the rds_iw_mr_pool struct the free_pinned field 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 the rds_rdma module to crash the kernel upon unloading, by triggering the BUG_ON in the rds_iw_destroy_mr_pool function.

This change keeps track of the MRs that become unpinned, so that free_pinned can be decremented appropriately.

Venkat

#1 lore raw
Quoted 7 lines · Venkat Venkatsubra
Quoted 6 lines · Jonathan Lallinger

In the rds_iw_mr_pool struct the free_pinned field 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 the rds_rdma module to crash the kernel upon unloading, by triggering the BUG_ON in the rds_iw_destroy_mr_pool function.

Quoted 9 lines
Quoted 5 lines

This change keeps track of the MRs that become unpinned, so that free_pinned can be decremented appropriately.

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.

maintainer
#2 lore raw

From: 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.

maintainer
#4 lore raw

Re: Recall: [PATCH] RDSRDMA: Fix cleanup of rds_iw_mr_pool

In reply to a message not in the archive

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.