Re: [PATCH] btrfs-progs: make 'btrfs replace' signal-handling works.

2014-09-02 Thread Qu Wenruo
Original Message Subject: Re: [PATCH] btrfs-progs: make 'btrfs replace' signal-handling works. From: David Sterba To: Qu Wenruo Date: 2014年09月02日 19:25 On Wed, Aug 06, 2014 at 09:17:07AM +0800, Qu Wenruo wrote: Current BTRFS_IOC_DEV_REPLACE ioctl is synchr

Re: [PATCH] btrfs-progs: make 'btrfs replace' signal-handling works.

2014-09-02 Thread David Sterba
On Wed, Aug 06, 2014 at 09:17:07AM +0800, Qu Wenruo wrote: > Current BTRFS_IOC_DEV_REPLACE ioctl is synchronous, and during the ioctl > program is fallen into kernel and unable to handle signal, the original > signal function will never be executed until the dev replace is done. > This is very anno

[PATCH] btrfs-progs: make 'btrfs replace' signal-handling works.

2014-08-05 Thread Qu Wenruo
Current BTRFS_IOC_DEV_REPLACE ioctl is synchronous, and during the ioctl program is fallen into kernel and unable to handle signal, the original signal function will never be executed until the dev replace is done. This is very annoying for someone who wants to stop dev replace by Ctrl-c (we have t