Whamcloud - gitweb
LU-5396: add sparse locking annotations
[fs/lustre-release.git] / lustre / osc / osc_cache.c
index 95f68cf..4a8e9ce 100644 (file)
@@ -1937,6 +1937,7 @@ static int get_write_extents(struct osc_object *obj, struct list_head *rpclist)
 static int
 osc_send_write_rpc(const struct lu_env *env, struct client_obd *cli,
                   struct osc_object *osc, pdl_policy_t pol)
+__must_hold(osc)
 {
        struct list_head   rpclist = LIST_HEAD_INIT(rpclist);
        struct osc_extent *ext;
@@ -2010,6 +2011,7 @@ osc_send_write_rpc(const struct lu_env *env, struct client_obd *cli,
 static int
 osc_send_read_rpc(const struct lu_env *env, struct client_obd *cli,
                  struct osc_object *osc, pdl_policy_t pol)
+__must_hold(osc)
 {
        struct osc_extent *ext;
        struct osc_extent *next;
@@ -2089,6 +2091,7 @@ static struct osc_object *osc_next_obj(struct client_obd *cli)
 /* called with the loi list lock held */
 static void osc_check_rpcs(const struct lu_env *env, struct client_obd *cli,
                           pdl_policy_t pol)
+__must_hold(&cli->cl_loi_list_lock)
 {
        struct osc_object *osc;
        int rc = 0;