[lustre-devel] [PATCH 13/37] lustre: llog: remove lgh_hdr_lock.
James Simmons
jsimmons at infradead.org
Sun Feb 24 12:29:22 PST 2019
> This lock is unused on the client (and on the server,
> it has been changed to a mutex).
Reviewed-by: James Simmons <jsimmons at infradead.org>
> Signed-off-by: NeilBrown <neilb at suse.com>
> ---
> drivers/staging/lustre/lustre/include/lustre_log.h | 1 -
> drivers/staging/lustre/lustre/obdclass/llog.c | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/include/lustre_log.h b/drivers/staging/lustre/lustre/include/lustre_log.h
> index a576d40f03f7..e96bd6ab0fa4 100644
> --- a/drivers/staging/lustre/lustre/include/lustre_log.h
> +++ b/drivers/staging/lustre/lustre/include/lustre_log.h
> @@ -212,7 +212,6 @@ struct llog_operations {
> /* In-memory descriptor for a log object or log catalog */
> struct llog_handle {
> struct rw_semaphore lgh_lock;
> - spinlock_t lgh_hdr_lock; /* protect lgh_hdr data */
> struct llog_logid lgh_id; /* id of this log */
> struct llog_log_hdr *lgh_hdr;
> size_t lgh_hdr_size;
> diff --git a/drivers/staging/lustre/lustre/obdclass/llog.c b/drivers/staging/lustre/lustre/obdclass/llog.c
> index 7aa459bb444e..9d161c16c2f9 100644
> --- a/drivers/staging/lustre/lustre/obdclass/llog.c
> +++ b/drivers/staging/lustre/lustre/obdclass/llog.c
> @@ -64,7 +64,6 @@ static struct llog_handle *llog_alloc_handle(void)
> return NULL;
>
> init_rwsem(&loghandle->lgh_lock);
> - spin_lock_init(&loghandle->lgh_hdr_lock);
> INIT_LIST_HEAD(&loghandle->u.phd.phd_entry);
> atomic_set(&loghandle->lgh_refcount, 1);
>
>
>
>
More information about the lustre-devel
mailing list