]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/CORE: sync the resouce access in fmr_pool
authorWengang Wang <wen.gang.wang@oracle.com>
Fri, 10 Mar 2017 17:21:01 +0000 (09:21 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 29 May 2017 20:36:58 +0000 (16:36 -0400)
commitc886bf2c4f1f81b76cb8e9d41992bff6ddbd0c47
tree3490da6ec7d02d539cdcb04f06314350a1c27ada
parent3b8598c6253030f8b2fb038b05ace6f08b559614
IB/CORE: sync the resouce access in fmr_pool

orabug: 25677461

There were some problem in the fmr_pool code that either was missing lock
protection or was using wrong lock when allocating/freeing/looking up resource
in the FMR pool.

Covering all above issues, the code turns out that every where we need lock
protection we need both the pool_lock and used_pool_lock. So this patch also
removes the used_pool_lock and keeps the pool lock and make the later sync
all the accesses.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Reviewed-by: Avinash Repaka <avinash.repaka@oracle.com>
drivers/infiniband/core/fmr_pool.c