Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-08 Thread Guoqing Jiang
Hi Donald, On 2/8/21 19:41, Donald Buczek wrote: Dear Guoqing, On 08.02.21 15:53, Guoqing Jiang wrote: On 2/8/21 12:38, Donald Buczek wrote: 5. maybe don't hold reconfig_mutex when try to unregister sync_thread, like this. /* resync has finished, collect result

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-08 Thread Guoqing Jiang
On 2/8/21 12:38, Donald Buczek wrote: 5. maybe don't hold reconfig_mutex when try to unregister sync_thread, like this. /* resync has finished, collect result */ mddev_unlock(mddev); md_unregister_thread(>sync_thread); mddev_lock(mddev); As above: While

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-02 Thread Guoqing Jiang
Hi Donald, On 1/26/21 17:05, Donald Buczek wrote: Dear Guoqing, On 26.01.21 15:06, Guoqing Jiang wrote: On 1/26/21 13:58, Donald Buczek wrote: Hmm, how about wake the waiter up in the while loop of raid5d? @@ -6520,6 +6532,11 @@ static void raid5d(struct md_thread *thread

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Guoqing Jiang
On 1/26/21 13:58, Donald Buczek wrote: Hmm, how about wake the waiter up in the while loop of raid5d? @@ -6520,6 +6532,11 @@ static void raid5d(struct md_thread *thread) md_check_recovery(mddev); spin_lock_irq(>device_lock);    

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Guoqing Jiang
Hi Donald, On 1/26/21 10:50, Donald Buczek wrote: [...] diff --git a/drivers/md/md.c b/drivers/md/md.c index 2d21c298ffa7..f40429843906 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -4687,11 +4687,13 @@ action_store(struct mddev *mddev, const char *page, size_t len)  

Re: [PATCH v2 08/10] md: Implement ->corrupted_range()

2021-01-26 Thread Guoqing Jiang
On 1/25/21 23:55, Shiyang Ruan wrote: With the support of ->rmap(), it is possible to obtain the superblock on a mapped device. If a pmem device is used as one target of mapped device, we cannot obtain its superblock directly. With the help of SYSFS, the mapped device can be found on the

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-25 Thread Guoqing Jiang
Hi Donald, On 1/25/21 22:32, Donald Buczek wrote: On 25.01.21 09:54, Donald Buczek wrote: Dear Guoqing, a colleague of mine was able to produce the issue inside a vm and were able to find a procedure to run the vm into the issue within minutes (not unreliably after hours on a physical

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-20 Thread Guoqing Jiang
Hi Donald, On 1/19/21 12:30, Donald Buczek wrote: Dear md-raid people, I've reported a problem in this thread in December: "We are using raid6 on several servers. Occasionally we had failures, where a mdX_raid6 process seems to go into a busy loop and all I/O to the md device blocks. We've

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2020-12-02 Thread Guoqing Jiang
Hi Donald, On 12/2/20 18:28, Donald Buczek wrote: Dear Guoqing, unfortunately the patch didn't fix the problem (unless I messed it up with my logging). This is what I used:     --- a/drivers/md/md.c     +++ b/drivers/md/md.c     @@ -9305,6 +9305,14 @@ void md_check_recovery(struct mddev

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2020-11-29 Thread Guoqing Jiang
On 11/28/20 13:25, Donald Buczek wrote: Dear Linux mdraid people, we are using raid6 on several servers. Occasionally we had failures, where a mdX_raid6 process seems to go into a busy loop and all I/O to the md device blocks. We've seen this on various kernel versions. The last time

Re: decruft the early init / initrd / initramfs code v2

2020-07-16 Thread Guoqing Jiang
On 7/15/20 8:51 AM, Christoph Hellwig wrote: On Tue, Jul 14, 2020 at 12:34:45PM -0700, Linus Torvalds wrote: On Tue, Jul 14, 2020 at 12:06 PM Christoph Hellwig wrote: this series starts to move the early init code away from requiring KERNEL_DS to be implicitly set during early startup. It

Re: [PATCH 1/6] md: switch to ->check_events for media change notifications

2020-07-08 Thread Guoqing Jiang
On 7/8/20 3:23 PM, Matthew Wilcox wrote: On Wed, Jul 08, 2020 at 03:17:31PM +0200, Guoqing Jiang wrote: On 7/8/20 2:25 PM, Christoph Hellwig wrote: -static int md_media_changed(struct gendisk *disk) -{ - struct mddev *mddev = disk->private_data; - - return mddev->changed; -}

Re: [PATCH 1/6] md: switch to ->check_events for media change notifications

2020-07-08 Thread Guoqing Jiang
On 7/8/20 2:25 PM, Christoph Hellwig wrote: -static int md_media_changed(struct gendisk *disk) -{ - struct mddev *mddev = disk->private_data; - - return mddev->changed; -} Maybe we can remove "changed" from struct mddev since no one reads it after the change. Thanks, Guoqing

Re: [PATCH 08/10] orangefs: use attach/detach_page_private

2020-05-28 Thread Guoqing Jiang
On 5/26/20 11:54 PM, Mike Marshall wrote: I apologize for not mentioning that I ran this patch set through orangefs xfstests at 5.7 rc5 with no problems or regressions. Glad to hear that, thanks for your effort. Thanks, Guoqing

[PATCH] mm_types.h: change set_page_private to inline function

2020-05-25 Thread Guoqing Jiang
Change it to inline function to make callers use the proper argument. And no need for it to be macro per Andrew's comment [1]. [1] https://lore.kernel.org/lkml/20200518221235.1fa32c38e5766113f78e3...@linux-foundation.org/ Signed-off-by: Guoqing Jiang --- include/linux/mm_types.h | 6 +- 1

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-24 Thread Guoqing Jiang
On 5/23/20 1:53 AM, Andrew Morton wrote: On Fri, 22 May 2020 09:18:25 +0200 Guoqing Jiang wrote: - ClearPagePrivate(page); - set_page_private(newpage, page_private(page)); - set_page_private(page, 0); - put_page(page); + set_page_private(newpage

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-22 Thread Guoqing Jiang
Hi Dave, On 5/22/20 12:52 AM, Dave Chinner wrote: On Sun, May 17, 2020 at 11:47:18PM +0200, Guoqing Jiang wrote: We can cleanup code a little by call detach_page_private here. Signed-off-by: Guoqing Jiang --- No change since RFC V3. mm/migrate.c | 5 + 1 file changed, 1 insertion

[UPDATE PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-19 Thread Guoqing Jiang
We can cleanup code a little by call detach_page_private here. Signed-off-by: Guoqing Jiang --- Add the cast to fix type mismatch warning, sorry for the mistake. mm/migrate.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 7160c1556f79

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-19 Thread Guoqing Jiang
Hi Andrew, On 5/19/20 9:35 AM, Guoqing Jiang wrote: On 5/19/20 7:12 AM, Andrew Morton wrote: On Sun, 17 May 2020 23:47:18 +0200 Guoqing Jiang wrote: We can cleanup code a little by call detach_page_private here. ... --- a/mm/migrate.c +++ b/mm/migrate.c @@ -804,10 +804,7 @@ static int

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-19 Thread Guoqing Jiang
On 5/19/20 12:06 PM, Gao Xiang wrote: On Tue, May 19, 2020 at 09:35:59AM +0200, Guoqing Jiang wrote: On 5/19/20 7:12 AM, Andrew Morton wrote: On Sun, 17 May 2020 23:47:18 +0200 Guoqing Jiang wrote: We can cleanup code a little by call detach_page_private here. ... --- a/mm/migrate.c

Re: [PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-19 Thread Guoqing Jiang
On 5/19/20 7:12 AM, Andrew Morton wrote: On Sun, 17 May 2020 23:47:18 +0200 Guoqing Jiang wrote: We can cleanup code a little by call detach_page_private here. ... --- a/mm/migrate.c +++ b/mm/migrate.c @@ -804,10 +804,7 @@ static int __buffer_migrate_page(struct address_space *mapping

[PATCH 03/10] btrfs: use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in btrfs. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_priv

[PATCH 09/10] buffer_head.h: remove attach_page_buffers

2020-05-17 Thread Guoqing Jiang
All the callers have replaced attach_page_buffers with the new function attach_page_private, so remove it. Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- No change since RFC. include/linux/buffer_head.h | 8

[PATCH 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-17 Thread Guoqing Jiang
We can cleanup code a little by call detach_page_private here. Signed-off-by: Guoqing Jiang --- No change since RFC V3. mm/migrate.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 5fed0305d2ec..f99502bc113c 100644 --- a/mm/migrate.c

[PATCH 08/10] orangefs: use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in orangefs. Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private.

[PATCH 02/10] md: remove __clear_page_buffers and use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
After introduce attach/detach_page_private in pagemap.h, we can remove the duplicat code and call the new functions. Cc: Song Liu Cc: linux-r...@vger.kernel.org Acked-by: Song Liu Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_priv

[PATCH 05/10] f2fs: use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in f2fs.h. Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net Acked-by: Chao Yu Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_priv

[PATCH 07/10] ntfs: replace attach_page_buffers with attach_page_private

2020-05-17 Thread Guoqing Jiang
Call the new function since attach_page_buffers will be removed. Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Signed-off-by: Guoqing Jiang --- No change since RFC V2. RFC -> RFC V2 1. change the name of new function to attach_page_private. fs/ntfs/aops.c | 2 +- fs/n

[PATCH 06/10] iomap: use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in iomap. Cc: Christoph Hellwig Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_

[PATCH 00/10] Introduce attach/detach_page_private to cleanup code

2020-05-17 Thread Guoqing Jiang
angefs. [1]. https://lore.kernel.org/linux-fsdevel/20200420221424.gh5...@bombadil.infradead.org/ [2]. https://lore.kernel.org/lkml/e4d5ddc0-877f-6499-f697-2b7c0ddbf...@cloud.ionos.com/ Guoqing Jiang (10): include/linux/pagemap.h: introduce attach/detach_page_private md: remove __clear_page_b

[PATCH 01/10] include/linux/pagemap.h: introduce attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
akov Cc: linux-ntfs-...@lists.sourceforge.net Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3: 1. rename clear_page_private to

[PATCH 04/10] fs/buffer.c: use attach/detach_page_private

2020-05-17 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in buffer.c. Cc: Alexander Viro Signed-off-by: Guoqing Jiang --- No change since RFC V3. RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the name of new fun

[RFC PATCH V3 07/10] ntfs: replace attach_page_buffers with attach_page_private

2020-05-07 Thread Guoqing Jiang
Call the new function since attach_page_buffers will be removed. Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3: no change RFC -> RFC V2 1. change the name of new function to attach_page_private. fs/ntfs/aops.c | 2

[RFC PATCH V3 02/10] md: remove __clear_page_buffers and use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
After introduce attach/detach_page_private in pagemap.h, we can remove the duplicat code and call the new functions. Cc: Song Liu Cc: linux-r...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1.

[RFC PATCH V3 03/10] btrfs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in btrfs. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RF

[RFC PATCH V3 05/10] f2fs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in f2fs.h. Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net Acked-by: Chao Yu Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -&g

[RFC PATCH V3 08/10] orangefs: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in orangefs. Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1.

[RFC PATCH V3 01/10] include/linux/pagemap.h: introduce attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
akov Cc: linux-ntfs-...@lists.sourceforge.net Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3: 1. rename clear_page_private to

[RFC PATCH V3 04/10] fs/buffer.c: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in buffer.c. Cc: Alexander Viro Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC -> RFC V2 1. change the name of new functions to attach/clear_page_p

[RFC PATCH V3 10/10] mm/migrate.c: call detach_page_private to cleanup code

2020-05-07 Thread Guoqing Jiang
We can cleanup code a little by call detach_page_private here. Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Guoqing Jiang --- Added since RFC V3. mm/migrate.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 7160c1556f79

[RFC PATCH V3 06/10] iomap: use attach/detach_page_private

2020-05-07 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in iomap. Cc: Christoph Hellwig Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC V2 -> RFC V3 1. rename clear_page_private to detach_page_private. RFC ->

[RFC PATCH V3 09/10] buffer_head.h: remove attach_page_buffers

2020-05-07 Thread Guoqing Jiang
All the callers have replaced attach_page_buffers with the new function attach_page_private, so remove it. Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- No change since RFC. include/linux/buffer_head.h | 8

[RFC PATCH V3 0/9] Introduce attach/detach_page_private to cleanup code

2020-05-07 Thread Guoqing Jiang
s. [1]. https://lore.kernel.org/linux-fsdevel/20200420221424.gh5...@bombadil.infradead.org/ [2]. https://lore.kernel.org/lkml/e4d5ddc0-877f-6499-f697-2b7c0ddbf...@cloud.ionos.com/ Thanks, Guoqing Guoqing Jiang (10): include/linux/pagemap.h: introduce attach/detach_page_private md:

Re: [RFC PATCH V2 0/9] Introduce attach/clear_page_private to cleanup code

2020-05-02 Thread Guoqing Jiang
On 5/2/20 2:41 AM, Matthew Wilcox wrote: On Sat, May 02, 2020 at 12:42:15AM +0200, Guoqing Jiang wrote: On 5/2/20 12:16 AM, Matthew Wilcox wrote: On Thu, Apr 30, 2020 at 11:44:41PM +0200, Guoqing Jiang wrote: include/linux/pagemap.h: introduce attach/clear_page_private md: remove

Re: [RFC PATCH V2 0/9] Introduce attach/clear_page_private to cleanup code

2020-05-01 Thread Guoqing Jiang
On 5/2/20 12:16 AM, Matthew Wilcox wrote: On Thu, Apr 30, 2020 at 11:44:41PM +0200, Guoqing Jiang wrote: include/linux/pagemap.h: introduce attach/clear_page_private md: remove __clear_page_buffers and use attach/clear_page_private btrfs: use attach/clear_page_private fs/buffer.c

Re: [RFC PATCH V2 1/9] include/linux/pagemap.h: introduce attach/clear_page_private

2020-05-01 Thread Guoqing Jiang
On 5/1/20 3:49 AM, Al Viro wrote: On Fri, May 01, 2020 at 02:42:29AM +0100, Al Viro wrote: On Thu, Apr 30, 2020 at 03:13:38PM -0700, Matthew Wilcox wrote: +/** + * clear_page_private - clear page's private field and PG_private. + * @page: page to be cleared. + * + * The counterpart function

Re: [RFC PATCH V2 1/9] include/linux/pagemap.h: introduce attach/clear_page_private

2020-05-01 Thread Guoqing Jiang
On 5/1/20 12:13 AM, Matthew Wilcox wrote: On Thu, Apr 30, 2020 at 11:44:42PM +0200, Guoqing Jiang wrote: +/** + * attach_page_private - attach data to page's private field and set PG_private. + * @page: page to be attached and set flag. + * @data: data to attach to page's private field

Re: [RFC PATCH V2 1/9] include/linux/pagemap.h: introduce attach/clear_page_private

2020-05-01 Thread Guoqing Jiang
On 5/1/20 12:10 AM, Andreas Grünbacher wrote: Hi, Am Do., 30. Apr. 2020 um 23:56 Uhr schrieb Guoqing Jiang : The logic in attach_page_buffers and __clear_page_buffers are quite paired, but 1. they are located in different files. 2. attach_page_buffers is implemented in buffer_head.h, so

[RFC PATCH V2 1/9] include/linux/pagemap.h: introduce attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
ists.orangefs.org Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- RFC -> RFC V2: Address the comments from Christoph Hellwig 1. change function names to attach/clear_page_private and add comments. 2.

[RFC PATCH V2 3/9] btrfs: use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in btrfs. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private. 2. c

[RFC PATCH V2 8/9] orangefs: use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in orangefs. Cc: Mike Marshall Cc: Martin Brandenburg Cc: de...@lists.orangefs.org Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private. 2. avoid potent

[RFC PATCH V2 0/9] Introduce attach/clear_page_private to cleanup code

2020-04-30 Thread Guoqing Jiang
ree in orangefs. [1]. https://lore.kernel.org/linux-fsdevel/20200420221424.gh5...@bombadil.infradead.org/ Thanks, Guoqing Guoqing Jiang (9): include/linux/pagemap.h: introduce attach/clear_page_private md: remove __clear_page_buffers and use attach/clear_page_private btrfs: use attach/clear_page_priv

[RFC PATCH V2 2/9] md: remove __clear_page_buffers and use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
After introduce attach/clear_page_private in pagemap.h, we can remove the duplicat code and call the new functions. Cc: Song Liu Cc: linux-r...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private. drivers/md

[RFC PATCH V2 4/9] fs/buffer.c: use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in buffer.c. Cc: Alexander Viro Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private. fs/buffer.c | 16 1 file changed, 4 insertions(+),

[RFC PATCH V2 6/9] iomap: use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in iomap. Cc: Christoph Hellwig Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_pri

[RFC PATCH V2 7/9] ntfs: replace attach_page_buffers with attach_page_private

2020-04-30 Thread Guoqing Jiang
Call the new function since attach_page_buffers will be removed. Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new function to attach_page_private. fs/ntfs/aops.c | 2 +- fs/ntfs/mft.c | 2 +- 2 fi

[RFC PATCH V2 5/9] f2fs: use attach/clear_page_private

2020-04-30 Thread Guoqing Jiang
Since the new pair function is introduced, we can call them to clean the code in f2fs.h. Cc: Jaegeuk Kim Cc: linux-f2fs-de...@lists.sourceforge.net Acked-by: Chao Yu Signed-off-by: Guoqing Jiang --- RFC -> RFC V2 1. change the name of new functions to attach/clear_page_private. fs/f

[RFC PATCH V2 9/9] buffer_head.h: remove attach_page_buffers

2020-04-30 Thread Guoqing Jiang
All the callers have replaced attach_page_buffers with the new function attach_page_private, so remove it. Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- include/linux/buffer_head.h | 8 1 file changed, 8

Re: [PATCH] md: Fix failed allocation of md_register_thread

2019-03-07 Thread Guoqing Jiang
On 3/5/19 6:48 AM, Aditya Pakki wrote: mddev->sync_thread can be set to NULL on kzalloc failure downstream. The patch checks for such a scenario and frees allocated resources. Signed-off-by: Aditya Pakki --- drivers/md/raid10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: linux 4.19.19: md0_raid:1317 blocked for more than 120 seconds.

2019-02-14 Thread Guoqing Jiang
On 2/14/19 11:27 PM, Wolfgang Walter wrote: Am Donnerstag, 14. Februar 2019, 10:09:56 schrieb Guoqing Jiang: On 2/12/19 7:20 PM, Wolfgang Walter wrote: Am Dienstag, 12. Februar 2019, 16:20:11 schrieb Guoqing Jiang: On 2/11/19 11:12 PM, Wolfgang Walter wrote: With 4.19.19 we see sometimes

Re: linux 4.19.19: md0_raid:1317 blocked for more than 120 seconds.

2019-02-13 Thread Guoqing Jiang
On 2/12/19 7:20 PM, Wolfgang Walter wrote: Am Dienstag, 12. Februar 2019, 16:20:11 schrieb Guoqing Jiang: On 2/11/19 11:12 PM, Wolfgang Walter wrote: With 4.19.19 we see sometimes the following issue (practically only with blk_mq, though): Feb 4 20:04:46 tettnang kernel: [252300.060165

Re: [PATCH] drivers/md.c: Make bio_alloc_mddev return bio_alloc_bioset

2019-01-11 Thread Guoqing Jiang
to cc list, anyway, Acked-by: Guoqing Jiang Thanks, Guoqing --- drivers/md/md.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index fc488cb30a94..42e018f014cb 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -207,15 +207,10

Re: Shaohua Li

2019-01-02 Thread Guoqing Jiang
On 1/3/19 1:13 AM, Jens Axboe wrote: Hi, I've got some very sad news to share with you - over Christmas, Shaohua Li passed away after battling cancer for most of last year. It is really a sad news and a big lost for the community consider Shaohua's great contribution! As you know,

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Guoqing Jiang
On 01/10/2018 02:13 PM, Paolo Valente wrote: Il giorno 10 gen 2018, alle ore 02:41, Guoqing Jiang <gqji...@suse.com> ha scritto: On 01/09/2018 05:27 PM, Paolo Valente wrote: For each pair [device for which bfq is selected as I/O scheduler, group in blkio/io], bfq mai

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Guoqing Jiang
On 01/10/2018 02:13 PM, Paolo Valente wrote: Il giorno 10 gen 2018, alle ore 02:41, Guoqing Jiang ha scritto: On 01/09/2018 05:27 PM, Paolo Valente wrote: For each pair [device for which bfq is selected as I/O scheduler, group in blkio/io], bfq maintains a corresponding bfq group. Each

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Guoqing Jiang
vein, bfqg_stats_xfer_dead is not executed for a root group. This commit fixes bfq_pd_offline so that the latter executes the above missing operations for a root group too. Reported-by: Holger Hoffstätte <hol...@applied-asynchrony.com> Reported-by: Guoqing Jiang <gqji...@suse.com>

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Guoqing Jiang
vein, bfqg_stats_xfer_dead is not executed for a root group. This commit fixes bfq_pd_offline so that the latter executes the above missing operations for a root group too. Reported-by: Holger Hoffstätte Reported-by: Guoqing Jiang Signed-off-by: Davide Ferrari Signed-off-by: Paolo Valente

[PATCH] ppdev: remove unused ROUND_UP macro

2017-07-14 Thread Guoqing Jiang
This macro is not used after commit 3b9ab374a1e6 ("ppdev: convert to y2038 safe"), so let's remove it. Signed-off-by: Guoqing Jiang <gqji...@suse.com> --- drivers/char/ppdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index

[PATCH] ppdev: remove unused ROUND_UP macro

2017-07-14 Thread Guoqing Jiang
This macro is not used after commit 3b9ab374a1e6 ("ppdev: convert to y2038 safe"), so let's remove it. Signed-off-by: Guoqing Jiang --- drivers/char/ppdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 3e73bcd..d256

Re: [PATCH v2 11/51] md: raid1: initialize bvec table via bio_add_page()

2017-06-28 Thread Guoqing Jiang
it is a good idea, and even the two patches can be put into one, so how about the following patch? Looks good. Acked-by: Guoqing Jiang <gqji...@suse.com> Thanks, Guoqing Shaohua, what do you think of this one? --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 3d957ac1e109..7ffc62

Re: [PATCH v2 11/51] md: raid1: initialize bvec table via bio_add_page()

2017-06-28 Thread Guoqing Jiang
it is a good idea, and even the two patches can be put into one, so how about the following patch? Looks good. Acked-by: Guoqing Jiang Thanks, Guoqing Shaohua, what do you think of this one? --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 3d957ac1e109..7ffc622dd7fa 100644 --- a/drivers

Re: [PATCH v2 11/51] md: raid1: initialize bvec table via bio_add_page()

2017-06-27 Thread Guoqing Jiang
On 06/26/2017 08:09 PM, Ming Lei wrote: We will support multipage bvec soon, so initialize bvec table using the standardy way instead of writing the talbe directly. Otherwise it won't work any more once multipage bvec is enabled. Cc: Shaohua Li Cc: linux-r...@vger.kernel.org

Re: [PATCH v2 11/51] md: raid1: initialize bvec table via bio_add_page()

2017-06-27 Thread Guoqing Jiang
On 06/26/2017 08:09 PM, Ming Lei wrote: We will support multipage bvec soon, so initialize bvec table using the standardy way instead of writing the talbe directly. Otherwise it won't work any more once multipage bvec is enabled. Cc: Shaohua Li Cc: linux-r...@vger.kernel.org Signed-off-by:

Re: [PATCH] md-cluster: Fix a memleak in an error handling path

2017-04-14 Thread Guoqing Jiang
uster: introduce cluster_check_sync_size") Reviewed-by: Guoqing Jiang <gqji...@suse.com> Thanks, Guoqing Signed-off-by: Christophe JAILLET <christophe.jail...@wanadoo.fr> --- drivers/md/md-cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

Re: [PATCH] md-cluster: Fix a memleak in an error handling path

2017-04-14 Thread Guoqing Jiang
uster: introduce cluster_check_sync_size") Reviewed-by: Guoqing Jiang Thanks, Guoqing Signed-off-by: Christophe JAILLET --- drivers/md/md-cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index b2

Re: [LSF/MM TOPIC] [LSF/MM ATTEND] md raid general discussion

2017-01-15 Thread Guoqing Jiang
On 01/10/2017 12:38 AM, Coly Li wrote: Hi Folks, I'd like to propose a general md raid discussion, it is quite necessary for most of active md raid developers sit together to discuss current challenge of Linux software raid and development trends. In the last years, we have many development

Re: [LSF/MM TOPIC] [LSF/MM ATTEND] md raid general discussion

2017-01-15 Thread Guoqing Jiang
On 01/10/2017 12:38 AM, Coly Li wrote: Hi Folks, I'd like to propose a general md raid discussion, it is quite necessary for most of active md raid developers sit together to discuss current challenge of Linux software raid and development trends. In the last years, we have many development

Re: ANNOUNCE: mdadm 4.0 - A tool for managing md Soft RAID under Linux

2017-01-11 Thread Guoqing Jiang
On 01/12/2017 12:59 AM, Jes Sorensen wrote: On 01/11/17 11:52, Shaohua Li wrote: On Tue, Jan 10, 2017 at 11:49:04AM -0600, Bruce Dubbs wrote: Jes Sorensen wrote: I am pleased to announce the availability of mdadm version 4.0 It is available at the usual places:

Re: ANNOUNCE: mdadm 4.0 - A tool for managing md Soft RAID under Linux

2017-01-11 Thread Guoqing Jiang
On 01/12/2017 12:59 AM, Jes Sorensen wrote: On 01/11/17 11:52, Shaohua Li wrote: On Tue, Jan 10, 2017 at 11:49:04AM -0600, Bruce Dubbs wrote: Jes Sorensen wrote: I am pleased to announce the availability of mdadm version 4.0 It is available at the usual places:

Re: [PATCH 08/16] md/bitmap: Rename a jump label in location_store()

2016-09-28 Thread Guoqing Jiang
On 09/28/2016 03:55 PM, Jes Sorensen wrote: SF Markus Elfring writes: From: Markus Elfring Date: Tue, 27 Sep 2016 15:46:22 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus

Re: [PATCH 08/16] md/bitmap: Rename a jump label in location_store()

2016-09-28 Thread Guoqing Jiang
On 09/28/2016 03:55 PM, Jes Sorensen wrote: SF Markus Elfring writes: From: Markus Elfring Date: Tue, 27 Sep 2016 15:46:22 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/bitmap.c | 18 +- 1

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-18 Thread Guoqing Jiang
On 09/14/2016 04:39 PM, Marion & Christophe JAILLET wrote: I don't share your feeling. bitmap_create() can return ERR_PTR(-ENOMEM) or ERR_PTR(-EINVAL). In such cases 'if (!bitmap)' will not be helpful. Maybe it should be turned into 'if (IS_ERR_OR_NULL(bitmap))' to handle errors returned

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-18 Thread Guoqing Jiang
On 09/14/2016 04:39 PM, Marion & Christophe JAILLET wrote: I don't share your feeling. bitmap_create() can return ERR_PTR(-ENOMEM) or ERR_PTR(-EINVAL). In such cases 'if (!bitmap)' will not be helpful. Maybe it should be turned into 'if (IS_ERR_OR_NULL(bitmap))' to handle errors returned

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-14 Thread Guoqing Jiang
On 09/13/2016 01:24 PM, Shaohua Li wrote: On Mon, Sep 12, 2016 at 09:09:48PM +0200, Christophe JAILLET wrote: Hi, I'm puzzled by commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed"). Hi Christophe, Thank you very much to help check this! Part of the commit is: @@

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-14 Thread Guoqing Jiang
On 09/13/2016 01:24 PM, Shaohua Li wrote: On Mon, Sep 12, 2016 at 09:09:48PM +0200, Christophe JAILLET wrote: Hi, I'm puzzled by commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed"). Hi Christophe, Thank you very much to help check this! Part of the commit is: @@

[PATCH 1/3] md: set MD_CHANGE_PENDING in a atomic region

2016-05-03 Thread Guoqing Jiang
: Martin Kepplinger <mart...@posteo.de> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Denys Vlasenko <dvlas...@redhat.com> Cc: Sasha Levin <sasha.le...@oracle.com> Cc: <linux-kernel@vger.kernel.org> Reviewed-by: NeilBrown <ne...@suse.com> Signed-off

[PATCH 1/3] md: set MD_CHANGE_PENDING in a atomic region

2016-05-03 Thread Guoqing Jiang
: Martin Kepplinger Cc: Andrew Morton Cc: Denys Vlasenko Cc: Sasha Levin Cc: Reviewed-by: NeilBrown Signed-off-by: Guoqing Jiang --- drivers/md/md.c | 27 ++- drivers/md/raid1.c | 4 ++-- drivers/md/raid10.c | 8 drivers/md/raid5-cache.c

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-16 Thread Guoqing Jiang
Hi David, David Teigland wrote: > On Thu, Jun 11, 2015 at 05:47:28PM +0800, Guoqing Jiang wrote: > >> Do you consider take the following clean up? If yes, I will send a >> formal patch, otherwise pls ignore it. >> > > On first glance, the old and new cod

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-16 Thread Guoqing Jiang
Hi David, David Teigland wrote: On Thu, Jun 11, 2015 at 05:47:28PM +0800, Guoqing Jiang wrote: Do you consider take the following clean up? If yes, I will send a formal patch, otherwise pls ignore it. On first glance, the old and new code do not appear to do the same thing, so

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-11 Thread Guoqing Jiang
Hi David, David Teigland wrote: > On Wed, Jun 10, 2015 at 11:10:44AM +0800, Guoqing Jiang wrote: > >> The remove_from_waiters could only be invoked after failed to >> create_message, right? >> Since send_message always returns 0, this patch doesn't touch anything >

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-11 Thread Guoqing Jiang
Hi David, David Teigland wrote: On Wed, Jun 10, 2015 at 11:10:44AM +0800, Guoqing Jiang wrote: The remove_from_waiters could only be invoked after failed to create_message, right? Since send_message always returns 0, this patch doesn't touch anything about the failure path, and it also

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-10 Thread Guoqing Jiang
Bob Peterson wrote: > >>>> >>>> >>>>> - Original Message - >>>>> >>>>> >>>>> >>>>>> We don't need the redundant logic since send_me

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-10 Thread Guoqing Jiang
Bob Peterson wrote: - Original Message - We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang gqji...@suse.com --- fs/dlm/lock.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
Bob Peterson wrote: > - Original Message - > >> Hi Bob, >> >> Bob Peterson wrote: >> >>> - Original Message - >>> >>> >>>> We don't need the redundant logic since send_message always returns 0.

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
Hi Bob, Bob Peterson wrote: > - Original Message - > >> We don't need the redundant logic since send_message always returns 0. >> >> Signed-off-by: Guoqing Jiang >> --- >> fs/dlm/lock.c | 10 ++ >> 1 file changed, 2 insertions(+)

[PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang --- fs/dlm/lock.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 35502d4..6fc3de9 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm

[PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang gqji...@suse.com --- fs/dlm/lock.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 35502d4..6fc3de9 100644 --- a/fs/dlm/lock.c

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
Hi Bob, Bob Peterson wrote: - Original Message - We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang gqji...@suse.com --- fs/dlm/lock.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/dlm/lock.c

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-09 Thread Guoqing Jiang
Bob Peterson wrote: - Original Message - Hi Bob, Bob Peterson wrote: - Original Message - We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang gqji...@suse.com --- fs/dlm/lock.c | 10 ++ 1 file

Re: linux-next: build failure after merge of the md tree

2015-03-13 Thread Guoqing Jiang
Stephen Rothwell wrote: > Hi Neil, > > On Mon, 2 Mar 2015 17:11:49 +1100 Stephen Rothwell > wrote: > >> On Mon, 2 Mar 2015 17:03:45 +1100 NeilBrown wrote: >> >>> I think >>> + bm_blocks = DIV_ROUND_UP(bm_blocks, 4096); >>> >>> needs DIV_ROUND_UP_SECTOR_T() >>> >> I

  1   2   >