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 149667 Details for
Bug 230535
flash drive hangs while copying to
[?]
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]
AKPM's patch
throttle_vm_writeout-dont-loop-on-gfp_nofs-and-gfp_noio-allocations.patch (text/plain), 2.00 KB, created by
Pete Zaitcev
on 2007-03-09 02:14:17 UTC
(
hide
)
Description:
AKPM's patch
Filename:
MIME Type:
Creator:
Pete Zaitcev
Created:
2007-03-09 02:14:17 UTC
Size:
2.00 KB
patch
obsolete
>Subject: throttle_vm_writeout(): don't loop on GFP_NOFS and GFP_NOIO allocations >From: Andrew Morton <akpm@linux-foundation.org> > >throttle_vm_writeout() is designed to wait for the dirty levels to subside. >But if the caller holds IO or FS locks, we might be holding up that writeout. > >So change it to take a single nap to give other devices a chance to clean some >memory, then return. > >Cc: Nick Piggin <nickpiggin@yahoo.com.au> >Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> >Cc: Kumar Gala <galak@kernel.crashing.org> >Cc: Pete Zaitcev <zaitcev@redhat.com> >Signed-off-by: Andrew Morton <akpm@linux-foundation.org> >--- > > linux/writeback.h | 0 > mm/page-writeback.c | 13 +++++++++++-- > mm/vmscan.c | 2 +- > 3 files changed, 12 insertions(+), 3 deletions(-) > >diff -puN mm/vmscan.c~throttle_vm_writeout-dont-loop-on-gfp_nofs-and-gfp_noio-allocations mm/vmscan.c >--- a/mm/vmscan.c~throttle_vm_writeout-dont-loop-on-gfp_nofs-and-gfp_noio-allocations >+++ a/mm/vmscan.c >@@ -952,7 +952,7 @@ static unsigned long shrink_zone(int pri > } > } > >- throttle_vm_writeout(); >+ throttle_vm_writeout(sc->gfp_mask); > > atomic_dec(&zone->reclaim_in_progress); > return nr_reclaimed; >diff -puN mm/page-writeback.c~throttle_vm_writeout-dont-loop-on-gfp_nofs-and-gfp_noio-allocations mm/page-writeback.c >--- a/mm/page-writeback.c~throttle_vm_writeout-dont-loop-on-gfp_nofs-and-gfp_noio-allocations >+++ a/mm/page-writeback.c >@@ -296,11 +296,21 @@ void balance_dirty_pages_ratelimited_nr( > } > EXPORT_SYMBOL(balance_dirty_pages_ratelimited_nr); > >-void throttle_vm_writeout(void) >+void throttle_vm_writeout(gfp_t gfp_mask) > { > long background_thresh; > long dirty_thresh; > >+ if ((gfp_mask & (__GFP_FS|__GFP_IO)) != __GFP_FS|__GFP_IO) { >+ /* >+ * The caller might hold locks which can prevert IO completion >+ * or progress in the filesystem. So we cannot just sit here >+ * waiting for IO to complete. >+ */ >+ congestion_wait(WRITE, HZ/10); >+ return; >+ } >+ > for ( ; ; ) { > get_dirty_limits(&background_thresh, &dirty_thresh, NULL); >
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 230535
: 149667