Revision 85a64889492b45f931ddac87ec09d84aa7347ee1 authored by Jonathan Lallinger on 29 September 2011, 07:58:41 UTC, committed by David S. Miller on 29 September 2011, 18:57:19 UTC
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.

Signed-off-by: Jonathan Lallinger <jonathan@ogc.us>
Signed-off-by: Steve Wise <swise@ogc.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 605b91c
History
File Mode Size
Kconfig -rw-r--r-- 492 bytes
Makefile -rw-r--r-- 343 bytes
ast.c -rw-r--r-- 8.0 KB
ast.h -rw-r--r-- 1.3 KB
config.c -rw-r--r-- 27.0 KB
config.h -rw-r--r-- 1.5 KB
debug_fs.c -rw-r--r-- 16.3 KB
dir.c -rw-r--r-- 10.0 KB
dir.h -rw-r--r-- 1.2 KB
dlm_internal.h -rw-r--r-- 16.9 KB
lock.c -rw-r--r-- 123.3 KB
lock.h -rw-r--r-- 2.6 KB
lockspace.c -rw-r--r-- 18.4 KB
lockspace.h -rw-r--r-- 1.0 KB
lowcomms.c -rw-r--r-- 38.3 KB
lowcomms.h -rw-r--r-- 1014 bytes
lvb_table.h -rw-r--r-- 687 bytes
main.c -rw-r--r-- 2.0 KB
member.c -rw-r--r-- 9.0 KB
member.h -rw-r--r-- 1.0 KB
memory.c -rw-r--r-- 2.1 KB
memory.h -rw-r--r-- 1.0 KB
midcomms.c -rw-r--r-- 3.7 KB
midcomms.h -rw-r--r-- 864 bytes
netlink.c -rw-r--r-- 2.9 KB
plock.c -rw-r--r-- 11.4 KB
rcom.c -rw-r--r-- 13.0 KB
rcom.h -rw-r--r-- 1.1 KB
recover.c -rw-r--r-- 18.9 KB
recover.h -rw-r--r-- 1.5 KB
recoverd.c -rw-r--r-- 7.2 KB
recoverd.h -rw-r--r-- 970 bytes
requestqueue.c -rw-r--r-- 5.3 KB
requestqueue.h -rw-r--r-- 882 bytes
user.c -rw-r--r-- 24.3 KB
user.h -rw-r--r-- 586 bytes
util.c -rw-r--r-- 4.5 KB
util.h -rw-r--r-- 805 bytes

back to top