[Top] [All Lists]

Re: UPDATE 799238 - SMP lockup between ramdisk & XFS

To: sgi.bugs.xfs@xxxxxxxxxxxxxxxxx
Subject: Re: UPDATE 799238 - SMP lockup between ramdisk & XFS
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 17 Aug 2000 09:37:21 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from pv@xxxxxxxxxxxxxxxxx (dxm@xxxxxxxxxxxx) of "Wed, 16 Aug 2000 22:25:33 PDT." <200008170525.WAA21150@xxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
XFS is not really part of the problem here, it is just triggering lots of

There appears to be a deadlock between the lru_list_lock and the

On the one hand the lru_list_lock does not disable interrupts, so in I/O
can complete whilst it is held. I/O completion functions tend to grab the

On the other hand there are queue request functions (rd_request from the
ram disk driver is the example we hit) which end up grabbing the lru_list_lock.
In this case rd_request calls getblk. Since the unplug_device layer holds the
io_request_lock around the request_fn call we have a deadlock.

So either doing anything which touches the lru_list_lock in a request function
is a BUG, or the lru_list_lock should hold off interrupts, or some more complex
fix is needed.

I am not sure if the ram disk driver is an isolated case or one of many 


<Prev in Thread] Current Thread [Next in Thread>