Revert "IB/fmr_pool: ib_fmr_pool_flush() should flush all dirty FMRs"
authorPete Wyckoff <pw@osc.edu>
Tue, 26 Feb 2008 18:27:31 +0000 (13:27 -0500)
committerRoland Dreier <rolandd@cisco.com>
Fri, 29 Feb 2008 21:29:19 +0000 (13:29 -0800)
commit35fb5340e3de5dff86923eb0cded748c3a6e05e7
tree49a0c8b339366ae134f02f1eede6a4a0804bd62e
parent84ba284cd78c130818e2de53150f39b92504593b
Revert "IB/fmr_pool: ib_fmr_pool_flush() should flush all dirty FMRs"

This reverts commit a3cd7d9070be417a21905c997ee32d756d999b38.

The original commit breaks iSER reliably, making it complain:

    iser: iser_reg_page_vec:ib_fmr_pool_map_phys failed: -11

The FMR cleanup thread runs ib_fmr_batch_release() as dirty entries
build up.  This commit causes clean but used FMR entries also to be
purged.  During that process, another thread can see that there are no
free FMRs and fail, even though there should always have been enough
available.

Signed-off-by: Pete Wyckoff <pw@osc.edu>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/fmr_pool.c