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 152913 Details for
Bug 236069
GFS2: deadlock running d_rwdirectlarge
[?]
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]
A new patch to fix the bug in prepare_write's locking.
pw-fix.diff (text/plain), 1.39 KB, created by
Steve Whitehouse
on 2007-04-18 15:14:52 UTC
(
hide
)
Description:
A new patch to fix the bug in prepare_write's locking.
Filename:
MIME Type:
Creator:
Steve Whitehouse
Created:
2007-04-18 15:14:52 UTC
Size:
1.39 KB
patch
obsolete
>diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c >index 90c2879..2e7517b 100644 >--- a/fs/gfs2/ops_address.c >+++ b/fs/gfs2/ops_address.c >@@ -336,6 +336,24 @@ out_unlock: > goto out; > } > >+static int gfs2_write_lock_start(struct gfs2_inode *ip, struct page *page) >+{ >+ struct gfs2_holder *gh = &ip->i_gh; >+ int ret = 0; >+ if (!gfs2_glock_is_locked_by_me(ip->i_gl)) { >+ gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ATIME, gh); >+ unlock_page(page); >+ ret = gfs2_glock_nq_atime(gh); >+ if (unlikely(ret)) { >+ gfs2_holder_uninit(gh); >+ return ret; >+ } >+ ret = AOP_TRUNCATED_PAGE; >+ yield(); >+ } >+ return ret; >+} >+ > /** > * gfs2_prepare_write - Prepare to write a page to a file > * @file: The file to write to >@@ -360,16 +378,9 @@ static int gfs2_prepare_write(struct file *file, struct page *page, > unsigned int write_len = to - from; > > >- gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ATIME|LM_FLAG_TRY_1CB, &ip->i_gh); >- error = gfs2_glock_nq_atime(&ip->i_gh); >- if (unlikely(error)) { >- if (error == GLR_TRYFAILED) { >- unlock_page(page); >- error = AOP_TRUNCATED_PAGE; >- yield(); >- } >- goto out_uninit; >- } >+ error = gfs2_write_lock_start(ip, page); >+ if (error) >+ return error; > > gfs2_write_calc_reserv(ip, write_len, &data_blocks, &ind_blocks); > >@@ -431,7 +442,6 @@ out_alloc_put: > } > out_unlock: > gfs2_glock_dq_m(1, &ip->i_gh); >-out_uninit: > gfs2_holder_uninit(&ip->i_gh); > } >
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 236069
:
152324
|
152913
|
154455