diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index a360b24ed320..1f47c6e5456b 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c @@ -2594,7 +2594,9 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) txEnd(tid); mutex_unlock(&JFS_IP(ipimap)->commit_mutex); + AG_UNLOCK(imap, agno); duplicateIXtree(sb, blkno, xlen, &xaddr); + AG_LOCK(imap, agno); /* update the next available iag number */ imap->im_nextiag += 1;