]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xen-blkfront: correct maximum segment accounting
authorJan Beulich <JBeulich@suse.com>
Mon, 23 Jan 2017 15:11:37 +0000 (08:11 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 23 Jan 2017 18:27:42 +0000 (13:27 -0500)
commit3b4f18843e511193e7eb616710e838f5852e661d
treeabf5739ec8edad0a94594aa2148d132ab2f20867
parentb32728ffef7f233dbdabb3f11814bdf692aaf501
xen-blkfront: correct maximum segment accounting

Making use of "max_indirect_segments=" has issues:
- blkfront_setup_indirect() may end up with zero psegs when PAGE_SIZE
  is sufficiently much larger than XEN_PAGE_SIZE
- the variable driven by the command line option
  (xen_blkif_max_segments) has a somewhat different purpose, and hence
  should namely never end up being zero
- as long as the specified value is lower than the legacy default,
  we better don't use indirect segments at all (or we'd in fact lower
  throughput)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c