@@ -385,6 +385,12 @@ static struct page *vvp_pgcache_current(struct vvp_seq_private *priv)
struct inode *inode;
int nr;
+ if (IS_ERR(h)) {
+ if (PTR_ERR(h) == -EAGAIN)
+ continue;
+ break;
+ }
+
if (!priv->vsp_clob) {
struct lu_object *lu_obj;
@@ -164,6 +164,11 @@ static void jobid_prune(struct work_struct *work)
rhashtable_walk_enter(&session_jobids, &iter);
rhashtable_walk_start(&iter);
while ((sj = rhashtable_walk_next(&iter)) != NULL) {
+ if (IS_ERR(sj)) {
+ if (PTR_ERR(sj) == -EAGAIN)
+ continue;
+ break;
+ }
if (!hlist_empty(&sj->sj_session->tasks[PIDTYPE_SID])) {
remaining++;
continue;