| To: | Luben Tuikov <luben@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: PATCH: sleeping while holding a lock in _pagebuf_free_bh()::page_buf.c |
| From: | Stephen Lord <lord@xxxxxxx> |
| Date: | 22 Oct 2002 07:21:10 -0500 |
| Cc: | linux-xfs <linux-xfs@xxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxx> |
| In-reply-to: | <3DB49424.9E4CAC0F@xxxxxxxxxxxx> |
| References: | <3DB49424.9E4CAC0F@xxxxxxxxxxxx> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
On Mon, 2002-10-21 at 18:56, Luben Tuikov wrote: > Problem: on an SMP system, BANG#@!, the unthinkable happens. > Solution: never sleep when holding a lock. > > This patch applies to CVS code as of about 18:30 EDT > on Mon Oct 21 (today), and is self-explanatory. > > This patch fixes the problem of the mount going into D state > indefinitely when the RAID is syncing and mount is run > right after mkfs.xfs (from shell script, no sleep between, > low system load, SMP). > > If you know of similar incidents in other parts of the code > those should be fixed, probably ASAP. Rethinking this, the wake_up does not actually sleep. All this change does is change it from waking all waiters on this lock to waking one of them. Steve |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | In just 48 HOURS!!! Guaranteed!, Be on ALL the Major Search Engines |
|---|---|
| Next by Date: | Re: TAKE - merge up to 2.5.44, Robin Humble |
| Previous by Thread: | Re: PATCH: sleeping while holding a lock in _pagebuf_free_bh()::page_buf.c, Simon Matter |
| Next by Thread: | Re: PATCH: sleeping while holding a lock in _pagebuf_free_bh()::page_buf.c, Luben Tuikov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |