All of lore.kernel.org
 help / color / mirror / Atom feed
From: sagi@grimberg.me (Sagi Grimberg)
Subject: [PATCH] nvmet-file: clamp-down file namespace lba_shift
Date: Wed, 6 Mar 2019 12:19:04 -0800	[thread overview]
Message-ID: <2a38f63f-2349-e852-e24e-a046a64bc923@grimberg.me> (raw)
In-Reply-To: <SN6PR04MB4527C36DBCE293BDA6A7508786730@SN6PR04MB4527.namprd04.prod.outlook.com>


>> When the backing file is a tempfile for example, the inode i_blkbits
>> can be 1M in size which causes problems for hosts to support as the
>> disk block size.
>>
>> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
>> ---
>> This issue was observed in I/O errors in the log running test nvme/009.
>>
> We are not doing any I/O in nvme/009 explicitly using dd/fio, is this
> due to internal commands we send as a part of connect and disconnect ?
> Or test number is different ?

The former.

Also, I just now hit a divide by zero BUG when running test 009 with
multipath enabled.

Quick look shows that this is coming from blk_queue_stack_limits for the
ns_head.

Looks like nvme_update_disk_info() is reading a bs=0:
--
         unsigned short bs = 1 << ns->lba_shift;
--

bs is 16 bits and lba_shift is 20
(coming directly from the tempfile file_inode(ns->file)->i_blkbits)

So this fixes that one as well. Regardless, I think bs should be
unsigned int?

  reply	other threads:[~2019-03-06 20:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05  9:55 [PATCH] nvmet-file: clamp-down file namespace lba_shift Sagi Grimberg
2019-03-06 20:11 ` Chaitanya Kulkarni
2019-03-06 20:19   ` Sagi Grimberg [this message]
2019-03-06 20:38     ` Chaitanya Kulkarni
2019-03-06 20:49       ` Keith Busch
2019-03-07  1:14         ` Sagi Grimberg
2019-03-08 13:30 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a38f63f-2349-e852-e24e-a046a64bc923@grimberg.me \
    --to=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.