Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645Ab3ERHF0 (ORCPT ); Sat, 18 May 2013 03:05:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47006 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754005Ab3ERHFZ (ORCPT ); Sat, 18 May 2013 03:05:25 -0400 Date: Sat, 18 May 2013 09:05:15 +0200 From: Jens Axboe To: Calvin Owens Cc: Kent Overstreet , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, NeilBrown , majianpeng@gmail.com Subject: Re: [PATCH] md: Partially revert 2f6db2a7, which broke raid5 Message-ID: <20130518070515.GL19781@kernel.dk> References: <20130517213223.GA2530@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130517213223.GA2530@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2268 Lines: 45 On Fri, May 17 2013, Calvin Owens wrote: > Commit 2f6db2a7 was part of a series that cleaned up mdraid code by > replacing explicit re-initialization of struct bio with bio_reset(). > > In raid5 it incorrectly assumed that a couple initializations of its > members was a full reset, erasing the existing data and unconditionally > triggering the following BUG when assembling arrays: > > [ 14.653072] kernel BUG at /home/calvinow/git/linux/drivers/scsi/scsi_lib.c:1196! > [ 14.653074] invalid opcode: 0000 [#1] PREEMPT SMP > [ 14.653076] CPU: 1 PID: 40 Comm: kworker/1:0H Not tainted 3.10.0-rc1-amd-00279-g8f710dd #3 > [ 14.653077] Hardware name: System manufacturer System Product Name/M5A88-M, BIOS 0601 09/20/2011 > [ 14.653082] Workqueue: kblockd blk_delay_work > > [ 14.653123] Call Trace: > [ 14.653126] [] sd_prep_fn+0x2c8/0xb70 > [ 14.653129] [] ? deadline_remove_request.isra.9+0x50/0x90 > [ 14.653132] [] blk_peek_request+0xdb/0x210 > [ 14.653134] [] scsi_request_fn+0x45/0x4e0 > [ 14.653136] [] __blk_run_queue+0x31/0x40 > [ 14.653138] [] blk_delay_work+0x24/0x40 > [ 14.653141] [] process_one_work+0x1da/0x490 > [ 14.653143] [] ? process_one_work+0x17d/0x490 > [ 14.653145] [] worker_thread+0x11a/0x370 > [ 14.653147] [] ? rescuer_thread+0x2f0/0x2f0 > [ 14.653149] [] kthread+0xd6/0xe0 > [ 14.653151] [] ? __kthread_unpark+0x50/0x50 > [ 14.653154] [] ret_from_fork+0x7c/0xb0 > [ 14.653156] [] ? __kthread_unpark+0x50/0x50 > [ 14.653172] Code: > [ 14.653174] RIP [] scsi_setup_fs_cmnd+0x89/0x90 > > Signed-off-by: Calvin Owens Kent, there was a report on this issue yesterday as well. We need to get this fixed up ASAP. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/