Re: RAID6: "Bad block number requested"

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

 



Dear James, dear all!

Am 11.06.2018 um 17:06 schrieb James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>:
> This means that somehow, something sent a non 4k aligned 4k sized
> request. SCSI here is just the messenger.  However, if you apply this
> patch, it will capture the stack trace of what above it triggered this,
> which may help us in debugging.  It could be we may also want to see
> what the values of block and blk_rq_sectors(rq) actually are, but lets
> begin with the stack trace.
> ---
> 
> diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
> index 9421d9877730..ac865e048533 100644
> --- a/drivers/scsi/sd.c
> +++ b/drivers/scsi/sd.c
> @@ -1109,6 +1109,7 @@ static int sd_setup_read_write_cmnd(struct scsi_cmnd *SCpnt)
> 		if ((block & 7) || (blk_rq_sectors(rq) & 7)) {
> 			scmd_printk(KERN_ERR, SCpnt,
> 				    "Bad block number requested\n");
> +			WARN_ON_ONCE(1);
> 			goto out;
> 		} else {
> 			block = block >> 3;
I'll give that a try. But don't expect to hear from me soon, I'll need to build a test system for that. The error occurred in a production system, which I am very hesitant to re-boot, let alone insert drives that cause error messages.

Yours sincerely,
Sebastian



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux