[RFC][PATCH] Btrfs: fix deadlock due to unsubmitted

2013-02-07 Thread Miao Xie
The deadlock problem happened when running fsstress(a test program in LTP). Steps to reproduce: # mkfs.btrfs -b 100M partition # mount partition mnt # Path/fsstress -p 3 -n 1000 -d mnt The reason is: btrfs_direct_IO() |-do_direct_IO() |-get_page() |-get_blocks() |

Re: [RFC][PATCH] Btrfs: fix deadlock due to unsubmitted

2013-02-07 Thread Chris Mason
On Thu, Feb 07, 2013 at 03:12:07AM -0700, Miao Xie wrote: The deadlock problem happened when running fsstress(a test program in LTP). Steps to reproduce: # mkfs.btrfs -b 100M partition # mount partition mnt # Path/fsstress -p 3 -n 1000 -d mnt The reason is: btrfs_direct_IO()

Re: [RFC][PATCH] Btrfs: fix deadlock due to unsubmitted

2013-02-07 Thread Josef Bacik
On Thu, Feb 07, 2013 at 03:12:07AM -0700, Miao Xie wrote: The deadlock problem happened when running fsstress(a test program in LTP). Steps to reproduce: # mkfs.btrfs -b 100M partition # mount partition mnt # Path/fsstress -p 3 -n 1000 -d mnt The reason is: btrfs_direct_IO()