Re: [PATCH] jffs2: fix soft lockup when read flash error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014/11/12 2:30, chenjie6@xxxxxxxxxx wrote:
> From: chenjie <chenjie6@xxxxxxxxxx>
> 
> we find soft lockup when read flash error
...
> 
> Signed-off-by: chenjie <chenjie6@xxxxxxxxxx>
> 

As I said in a previous email, it's better to add:

Cc: <stable@xxxxxxxxxxxxxxx>

And then this fix will be applied to stable kernels like 3.10.y after it hits mainline.

Other than this, I have no further comment. :)

> ---
>  fs/jffs2/nodemgmt.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
> index b6bd4af..f689bb1 100644
> --- a/fs/jffs2/nodemgmt.c
> +++ b/fs/jffs2/nodemgmt.c
> @@ -322,6 +322,7 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c)
>  
>  		spin_unlock(&c->erase_completion_lock);
>  		/* Don't wait for it; just erase one right now */
> +		cond_resched();
>  		jffs2_erase_pending_blocks(c, 1);
>  		spin_lock(&c->erase_completion_lock);
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]