4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-12 Thread Duc Dang
Hi Theodore, Andreas, Jan, Andrew and All, We are seeing kernel trace when we disconnect an USB/SATA/MMC devices that has its ext2/ext3/ext4 partition currently mounted. These traces are seen with kernel 4.2-rc5 on APM Arm64 X-Gene platforms. Similar issue also happens on an x86 machine (Lenovo T4

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-13 Thread Darrick J. Wong
On Wed, Aug 12, 2015 at 08:17:28PM -0700, Duc Dang wrote: > Hi Theodore, Andreas, Jan, Andrew and All, > > We are seeing kernel trace when we disconnect an USB/SATA/MMC devices > that has its ext2/ext3/ext4 partition currently mounted. These traces > are seen with kernel 4.2-rc5 on APM Arm64 X-Gen

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-14 Thread Jan Kara
On Thu 13-08-15 09:01:28, Darrick J. Wong wrote: > On Wed, Aug 12, 2015 at 08:17:28PM -0700, Duc Dang wrote: > > Hi Theodore, Andreas, Jan, Andrew and All, > > > > We are seeing kernel trace when we disconnect an USB/SATA/MMC devices > > that has its ext2/ext3/ext4 partition currently mounted. The

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-14 Thread Duc Dang
On Fri, Aug 14, 2015 at 1:09 AM, Jan Kara wrote: > On Thu 13-08-15 09:01:28, Darrick J. Wong wrote: >> On Wed, Aug 12, 2015 at 08:17:28PM -0700, Duc Dang wrote: >> > Hi Theodore, Andreas, Jan, Andrew and All, >> > >> > We are seeing kernel trace when we disconnect an USB/SATA/MMC devices >> > that

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-15 Thread Christoph Hellwig
On Fri, Aug 14, 2015 at 05:52:44PM -0700, Duc Dang wrote: > The commit 08439fec26 "ext4: remove block_device_ejected" only causes > issue with ext4 and > trying reverting it helps our test passes with ext4. > > But how about the same issue with ext2/ext3? I tried to fix the underlying issue, but

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-24 Thread Duc Dang
On Sat, Aug 15, 2015 at 1:58 AM, Christoph Hellwig wrote: > On Fri, Aug 14, 2015 at 05:52:44PM -0700, Duc Dang wrote: >> The commit 08439fec26 "ext4: remove block_device_ejected" only causes >> issue with ext4 and >> trying reverting it helps our test passes with ext4. >> >> But how about the same

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-25 Thread Christoph Hellwig
On Mon, Aug 24, 2015 at 02:20:07PM -0700, Duc Dang wrote: > For more information. We tested kernel at commit 5f80f62ada "ext4: > remove useless condition in if statement." > (right before your commit) and still saw the issue. > > df3305156f989339529b3d6744b898d498fb1f7b [media] v4l: xilinx: Add >