Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
13181061
Commit
13181061
authored
Jul 07, 2004
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: prevent concurrent calls to txCommit on the imap inode
Signed-off-by:
Dave Kleikamp
<
shaggy@austin.ibm.com
>
parent
e83a5d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
fs/jfs/jfs_imap.c
fs/jfs/jfs_imap.c
+6
-0
No files found.
fs/jfs/jfs_imap.c
View file @
13181061
...
@@ -1280,6 +1280,7 @@ int diFree(struct inode *ip)
...
@@ -1280,6 +1280,7 @@ int diFree(struct inode *ip)
* to be freed by the transaction;
* to be freed by the transaction;
*/
*/
tid
=
txBegin
(
ipimap
->
i_sb
,
COMMIT_FORCE
);
tid
=
txBegin
(
ipimap
->
i_sb
,
COMMIT_FORCE
);
down
(
&
JFS_IP
(
ipimap
)
->
commit_sem
);
/* acquire tlock of the iag page of the freed ixad
/* acquire tlock of the iag page of the freed ixad
* to force the page NOHOMEOK (even though no data is
* to force the page NOHOMEOK (even though no data is
...
@@ -1312,6 +1313,7 @@ int diFree(struct inode *ip)
...
@@ -1312,6 +1313,7 @@ int diFree(struct inode *ip)
rc
=
txCommit
(
tid
,
1
,
&
iplist
[
0
],
COMMIT_FORCE
);
rc
=
txCommit
(
tid
,
1
,
&
iplist
[
0
],
COMMIT_FORCE
);
txEnd
(
tid
);
txEnd
(
tid
);
up
(
&
JFS_IP
(
ipimap
)
->
commit_sem
);
/* unlock the AG inode map information */
/* unlock the AG inode map information */
AG_UNLOCK
(
imap
,
agno
);
AG_UNLOCK
(
imap
,
agno
);
...
@@ -2622,10 +2624,13 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
...
@@ -2622,10 +2624,13 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
*/
*/
#endif
/* _STILL_TO_PORT */
#endif
/* _STILL_TO_PORT */
tid
=
txBegin
(
sb
,
COMMIT_FORCE
);
tid
=
txBegin
(
sb
,
COMMIT_FORCE
);
down
(
&
JFS_IP
(
ipimap
)
->
commit_sem
);
/* update the inode map addressing structure to point to it */
/* update the inode map addressing structure to point to it */
if
((
rc
=
if
((
rc
=
xtInsert
(
tid
,
ipimap
,
0
,
blkno
,
xlen
,
&
xaddr
,
0
)))
{
xtInsert
(
tid
,
ipimap
,
0
,
blkno
,
xlen
,
&
xaddr
,
0
)))
{
txEnd
(
tid
);
up
(
&
JFS_IP
(
ipimap
)
->
commit_sem
);
/* Free the blocks allocated for the iag since it was
/* Free the blocks allocated for the iag since it was
* not successfully added to the inode map
* not successfully added to the inode map
*/
*/
...
@@ -2650,6 +2655,7 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
...
@@ -2650,6 +2655,7 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
rc
=
txCommit
(
tid
,
1
,
&
iplist
[
0
],
COMMIT_FORCE
);
rc
=
txCommit
(
tid
,
1
,
&
iplist
[
0
],
COMMIT_FORCE
);
txEnd
(
tid
);
txEnd
(
tid
);
up
(
&
JFS_IP
(
ipimap
)
->
commit_sem
);
duplicateIXtree
(
sb
,
blkno
,
xlen
,
&
xaddr
);
duplicateIXtree
(
sb
,
blkno
,
xlen
,
&
xaddr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment