Transient pages do not go in the LRU, so don't bother
trying to add them.
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I90e3cca2229e1ae7d769c0534b5b6e0be2357ad9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52070
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ext->oe_rc = rc ?: ext->oe_nr_pages;
EASSERT(ergo(rc == 0, ext->oe_state == OES_RPC), ext);
- osc_lru_add_batch(cli, &ext->oe_pages);
+ /* dio pages do not go in the LRU */
+ if (!ext->oe_dio)
+ osc_lru_add_batch(cli, &ext->oe_pages);
+
list_for_each_entry_safe(oap, tmp, &ext->oe_pages,
oap_pending_item) {
list_del_init(&oap->oap_rpc_item);