Whamcloud - gitweb
LU-8005 osc: set lock data for readahead lock
[fs/lustre-release.git] / lustre / osc / osc_io.c
index b99db70..06af63f 100644 (file)
@@ -95,6 +95,7 @@ static int osc_io_read_ahead(const struct lu_env *env,
 
        dlmlock = osc_dlmlock_at_pgoff(env, osc, start, 0);
        if (dlmlock != NULL) {
+               LASSERT(dlmlock->l_ast_data == osc);
                if (dlmlock->l_req_mode != LCK_PR) {
                        struct lustre_handle lockh;
                        ldlm_lock2handle(dlmlock, &lockh);