Submitter : dxm Status : open
Assigned Engineer : nb Priority : 2
*Modified Date : 08/17/00 *Modified User : lord
*Modified User Domain : sgi.com *Description :
OK, so this one is repeatable now, and it looks like an
interraction between the ramdisk driver and XFS.
2 way SMP 1400 with 1Gb memory,
t-o-t kernel, kio _not_ enabled.
mkfs -t xfs -f /dev/sdc5
ADDITIONAL INFORMATION (ADD)
From: steve lord <lord@xxxxxxx>
Date: Aug 17 2000 07:45:04AM
[pvnews version: 1.71]
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