]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds remove dev race.
authorZheng Li <zheng.x.li@oracle.com>
Tue, 4 Jun 2013 03:34:33 +0000 (11:34 +0800)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 20:37:58 +0000 (13:37 -0700)
commite61d9d253d4c5bf6e29288f4f3eeaa72f4d12b69
treed8b58c2d297550da5665cdc46d0af4cb2c8ad784
parent66d9f9de73ea2b3999595ad3758314980d86c85b
rds remove dev race.

Orabug: 16605377

RDS: make sure rds_ib_remove_one() returns only after the device is freed.

This is to avoid possible race condition in which rds_ib_remove_one() returns
prematurely and IB removes the underlying device. RDS later tries to free the
device and trips over.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: bang.nguyen@oracle.com
(cherry picked from commit 62dab719ea687129dc52df2c2eec3b730d628b7a)
net/rds/ib.c
net/rds/ib.h