X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flu_object.h;h=e86f8b9f50300fe670e36b2b1d7a0d4861d9d45a;hp=782384aee36e3ba2da6217ccc0b5f3a2e3078933;hb=979f5e1db041dc49585b97c4915a6bc3e58435da;hpb=8b11e37f019ca5eddd977974dd496a8f09f58887 diff --git a/lustre/include/lu_object.h b/lustre/include/lu_object.h index 782384a..e86f8b9 100644 --- a/lustre/include/lu_object.h +++ b/lustre/include/lu_object.h @@ -1200,8 +1200,9 @@ int lu_context_key_register(struct lu_context_key *key); void lu_context_key_degister(struct lu_context_key *key); void *lu_context_key_get (const struct lu_context *ctx, const struct lu_context_key *key); -void lu_context_key_quiesce (struct lu_context_key *key); -void lu_context_key_revive (struct lu_context_key *key); +void lu_context_key_quiesce(struct lu_device_type *t, + struct lu_context_key *key); +void lu_context_key_revive(struct lu_context_key *key); /* @@ -1246,12 +1247,12 @@ void lu_context_key_revive (struct lu_context_key *key); } \ struct __##mod##_dummy_type_start {;} -#define LU_TYPE_STOP(mod, ...) \ - static void mod##_type_stop(struct lu_device_type *t) \ - { \ - lu_context_key_quiesce_many(__VA_ARGS__, NULL); \ - } \ - struct __##mod##_dummy_type_stop {;} +#define LU_TYPE_STOP(mod, ...) \ + static void mod##_type_stop(struct lu_device_type *t) \ + { \ + lu_context_key_quiesce_many(t, __VA_ARGS__, NULL); \ + } \ + struct __##mod##_dummy_type_stop { } @@ -1275,7 +1276,8 @@ int lu_context_refill(struct lu_context *ctx); int lu_context_key_register_many(struct lu_context_key *k, ...); void lu_context_key_degister_many(struct lu_context_key *k, ...); void lu_context_key_revive_many (struct lu_context_key *k, ...); -void lu_context_key_quiesce_many (struct lu_context_key *k, ...); +void lu_context_key_quiesce_many(struct lu_device_type *t, + struct lu_context_key *k, ...); /* * update/clear ctx/ses tags.