/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
- */
-/*
- * Copyright (c) 2011 Whamcloud, Inc.
+ *
+ * Copyright (c) 2011, 2012, Whamcloud, Inc.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
obd_enqueue_update_f upcall,
void *cookie, struct ldlm_enqueue_info *einfo,
struct lustre_handle *lockh,
- struct ptlrpc_request_set *rqset, int async);
+ struct ptlrpc_request_set *rqset, int async, int agl);
int osc_cancel_base(struct lustre_handle *lockh, __u32 mode);
int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id,
int osc_oap_interrupted(const struct lu_env *env, struct osc_async_page *oap);
void loi_list_maint(struct client_obd *cli, struct lov_oinfo *loi);
void osc_check_rpcs(const struct lu_env *env, struct client_obd *cli);
-
int osc_queue_async_io(const struct lu_env *env, struct obd_export *exp,
struct lov_stripe_md *lsm, struct lov_oinfo *loi,
struct osc_async_page *oap, int cmd, int off,
static inline int osc_recoverable_error(int rc)
{
- return (rc == -EIO || rc == -EROFS || rc == -ENOMEM || rc == -EAGAIN);
+ return (rc == -EIO || rc == -EROFS || rc == -ENOMEM ||
+ rc == -EAGAIN || rc == -EINPROGRESS);
}
#ifndef min_t