Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 146514 Details for
Bug 219775
GFS2 list corruption in journal code
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix list corruption
listfix.diff (text/plain), 1.71 KB, created by
Steve Whitehouse
on 2007-01-25 09:55:28 UTC
(
hide
)
Description:
Patch to fix list corruption
Filename:
MIME Type:
Creator:
Steve Whitehouse
Created:
2007-01-25 09:55:28 UTC
Size:
1.71 KB
patch
obsolete
>diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c >index 4d7f94d..16bb4b4 100644 >--- a/fs/gfs2/lops.c >+++ b/fs/gfs2/lops.c >@@ -69,13 +69,16 @@ static void buf_lo_add(struct gfs2_sbd * > struct gfs2_bufdata *bd = container_of(le, struct gfs2_bufdata, bd_le); > struct gfs2_trans *tr; > >- if (!list_empty(&bd->bd_list_tr)) >+ gfs2_log_lock(sdp); >+ if (!list_empty(&bd->bd_list_tr)) { >+ gfs2_log_unlock(sdp); > return; >- >+ } > tr = current->journal_info; > tr->tr_touched = 1; > tr->tr_num_buf++; > list_add(&bd->bd_list_tr, &tr->tr_list_buf); >+ gfs2_log_unlock(sdp); > > if (!list_empty(&le->le_list)) > return; >@@ -84,7 +87,6 @@ static void buf_lo_add(struct gfs2_sbd * > > gfs2_meta_check(sdp, bd->bd_bh); > gfs2_pin(sdp, bd->bd_bh); >- > gfs2_log_lock(sdp); > sdp->sd_log_num_buf++; > list_add(&le->le_list, &sdp->sd_log_le_buf); >@@ -98,11 +100,13 @@ static void buf_lo_incore_commit(struct > struct list_head *head = &tr->tr_list_buf; > struct gfs2_bufdata *bd; > >+ gfs2_log_lock(sdp); > while (!list_empty(head)) { > bd = list_entry(head->next, struct gfs2_bufdata, bd_list_tr); > list_del_init(&bd->bd_list_tr); > tr->tr_num_buf--; > } >+ gfs2_log_unlock(sdp); > gfs2_assert_warn(sdp, !tr->tr_num_buf); > } > >@@ -462,13 +466,17 @@ static void databuf_lo_add(struct gfs2_s > struct address_space *mapping = bd->bd_bh->b_page->mapping; > struct gfs2_inode *ip = GFS2_I(mapping->host); > >+ gfs2_log_lock(sdp); > tr->tr_touched = 1; > if (list_empty(&bd->bd_list_tr) && > (ip->i_di.di_flags & GFS2_DIF_JDATA)) { > tr->tr_num_buf++; > list_add(&bd->bd_list_tr, &tr->tr_list_buf); >+ gfs2_log_unlock(sdp); > gfs2_pin(sdp, bd->bd_bh); > tr->tr_num_buf_new++; >+ } else { >+ gfs2_log_unlock(sdp); > } > gfs2_trans_add_gl(bd->bd_gl); > gfs2_log_lock(sdp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219775
: 146514