]> err.no Git - linux-2.6/blobdiff - fs/jfs/jfs_txnmgr.c
JFS: Fix race in txLock
[linux-2.6] / fs / jfs / jfs_txnmgr.c
index 3555acff12d0c5009520d9d672f17fe3e476bcfc..c7a92f9deb2b93c269d2b945418030f37f53ba51 100644 (file)
@@ -657,7 +657,9 @@ struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp,
                                /* only anonymous txn.
                                 * Remove from anon_list
                                 */
+                               TXN_LOCK();
                                list_del_init(&jfs_ip->anon_inode_list);
+                               TXN_UNLOCK();
                        }
                        jfs_ip->atlhead = tlck->next;
                } else {