nvmet-rdma: occasionally flush ongoing controller teardown
authorSagi Grimberg <sagi@grimberg.me>
Tue, 21 Mar 2017 14:29:49 +0000 (16:29 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commit777dc82395de6e04b3a5fedcf153eb99bf5f1241
tree6b05969ca0cde280547b51b337ea06b5da7fc26e
parentdc2ad16ab2c1351832b862f938e6e12a517e3c12
nvmet-rdma: occasionally flush ongoing controller teardown

If we are attacked with establishments/teradowns we need to
make sure we do not consume too much system memory. Thus
let ongoing controller teardowns complete before accepting
new controller establishments.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/rdma.c