From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753852AbcB2Bxj (ORCPT ); Sun, 28 Feb 2016 20:53:39 -0500 Received: from mail-oi0-f50.google.com ([209.85.218.50]:35762 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752697AbcB2Bxh (ORCPT ); Sun, 28 Feb 2016 20:53:37 -0500 Date: Sun, 28 Feb 2016 18:53:33 -0700 From: Andrea Righi To: Shaohua Li Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: multipath: I/O hanging forever Message-ID: <20160229015333.GA3101@Dell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, if I try to do I/O on a mdadm/multipath volume the task is hunging forever and it never completes. Anybody else has noticed the same problem? I'm using 4.5.0-rc5+, from Linus' git. I'll try to do a git bisect later, I'm pretty sure this problem has been introduced recently (i.e., I've never seen this issue with 4.1.x). Example: # mdadm -C /dev/md0 --level=multipath --raid-devices=2 /dev/sdb /dev/sdc # cat /proc/mdstat Personalities : [multipath] md0 : active multipath sdb[0] sdc[1] 4042740 blocks super 1.2 [2/2] [UU] # mkfs.xfs /dev/md0 meta-data=/dev/md0 isize=256 agcount=4, agsize=252672 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=1010685, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 ^C^C^C # cat /proc/`pidof mkfs.xfs`/stack [] do_blockdev_direct_IO+0x1adc/0x2300 [] __blockdev_direct_IO+0x43/0x50 [] blkdev_direct_IO+0x4c/0x50 [] generic_file_direct_write+0xa4/0x160 [] __generic_file_write_iter+0xc0/0x1e0 [] blkdev_write_iter+0x80/0x100 [] __vfs_write+0xad/0xe0 [] vfs_write+0xa5/0x1a0 [] SyS_pwrite64+0x6c/0xa0 [] entry_SYSCALL_64_fastpath+0x12/0x76 [] 0xffffffffffffffff Thanks, -Andrea