From: Bart Van Assche <bart.vanassche@sandisk.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Adding target device caused an alignment inconsistency
Date: Tue, 1 Mar 2016 16:06:49 -0800 [thread overview]
Message-ID: <56D62E99.1070707@sandisk.com> (raw)
In-Reply-To: <56D6290D.1080906@sandisk.com>
On 03/01/2016 03:43 PM, Bart Van Assche wrote:
> After having run multipath -f + another reconfigure I noticed that the
> optimal_io_size parameter for multipath devices is zero (io_opt) but
> that blk_stack_limits() expects that that parameter is not zero. So i
> tried to repeat the test described in commit
> e9637415a92cf25ad800b7fdeddcd30cce7b44ab:
>
> # modprobe scsi_debug dev_size_mb=10 num_tgts=1 opt_blks=1536
> # lsscsi | grep debug
> [17352:0:0:0]disk Linux scsi_debug 0184 /dev/sds
> # cat /sys/block/sds/queue/optimal_io_size
> 1536
> # dmsetup create node --table "0 100 linear /dev/sds 0"
> (hangs in the semop() system call)
> ^C
(again replying to my own e-mail)
Apparently this works fine with kernel v4.5-rc6:
# modprobe scsi_debug dev_size_mb=10 num_tgts=1 opt_blks=1536
# lsscsi | grep debug
[42:0:0:0] disk Linux scsi_debug 0184 /dev/sdai
# cat /sys/block/sdai/queue/optimal_io_size
786432
# dmsetup create node --table "0 100 linear /dev/sdai 0"
# dmsetup table | grep linear
node: 0 100 linear 66:32 0
# dmsetup ls | grep node
node (254:2)
# cat /sys/block/dm-2/queue/optimal_io_size
786432
I will report this to the proper bugzilla. Sorry for the noise.
Bart.
next prev parent reply other threads:[~2016-03-02 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 22:25 Adding target device caused an alignment inconsistency Bart Van Assche
2016-03-01 23:43 ` Bart Van Assche
2016-03-02 0:06 ` Bart Van Assche [this message]
2016-03-02 8:41 ` Zdenek Kabelac
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=56D62E99.1070707@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=dm-devel@redhat.com \
/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.