diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-04 04:08:18 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-22 00:44:18 -0400 |
commit | 891abdbcb623ccbba196c6d09abff752cd7d01b9 (patch) | |
tree | 3a69644b0e700f4789ce69b87cc6b76e138da51a | |
parent | b8af23e70b3c269b030aaf139bd804cb64490872 (diff) |
bcachefs: fix another lockdep splat
-rw-r--r-- | fs/bcachefs/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 854f7f551cb7..92b0a2fde37c 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -245,7 +245,7 @@ int bch2_quota_acct(struct bch_fs *c, struct bch_qid qid, memset(&msgs, 0, sizeof(msgs)); for_each_set_qtype(c, i, q, qtypes) - mutex_lock(&q->lock); + mutex_lock_nested(&q->lock, i); for_each_set_qtype(c, i, q, qtypes) { mq[i] = genradix_ptr_alloc(&q->table, qid.q[i], GFP_NOFS); @@ -296,7 +296,7 @@ int bch2_quota_transfer(struct bch_fs *c, unsigned qtypes, memset(&msgs, 0, sizeof(msgs)); for_each_set_qtype(c, i, q, qtypes) - mutex_lock(&q->lock); + mutex_lock_nested(&q->lock, i); for_each_set_qtype(c, i, q, qtypes) { src_q[i] = genradix_ptr_alloc(&q->table, src.q[i], GFP_NOFS); |