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
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux