[PATCH] block: fix argument order for capacity change info print

2021-02-25 Thread Klaus Jensen
From: Klaus Jensen Swap "before" and "after" capacities in the info print in set_capacity_and_notify. Signed-off-by: Klaus Jensen --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index 304f8dcc9a9b.

Re: [PATCH v2] nvme: allow use of cmb on v1.4 controllers

2021-01-18 Thread Klaus Jensen
On Jan 18 18:59, Christoph Hellwig wrote: > Thanks, > > applied to nvme-5.11 with a little tweak to remove the cmbmsc local > variable and a comment explaining what is going on. > Sweet. Thanks! signature.asc Description: PGP signature

Re: [PATCH v2] nvme: allow use of cmb on v1.4 controllers

2021-01-14 Thread Klaus Jensen
On Jan 15 07:30, Klaus Jensen wrote: > From: Klaus Jensen > > Since NVMe v1.4 the Controller Memory Buffer must be explicitly enabled > by the host. > Sorry, messed up and missed adding the changes for v2. v2: - Do not explicitly check the NVMe version, rely on the presence

[PATCH v2] nvme: allow use of cmb on v1.4 controllers

2021-01-14 Thread Klaus Jensen
From: Klaus Jensen Since NVMe v1.4 the Controller Memory Buffer must be explicitly enabled by the host. Signed-off-by: Klaus Jensen --- drivers/nvme/host/pci.c | 13 - include/linux/nvme.h| 6 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/nvme

Re: [PATCH v2] null_blk: add support for max open/active zone limit for zoned devices

2020-08-28 Thread Klaus Jensen
On Aug 28 07:36, Damien Le Moal wrote: > On 2020/08/28 16:23, Klaus Jensen wrote: > > On Aug 28 07:06, Damien Le Moal wrote: > >> On 2020/08/27 22:50, Niklas Cassel wrote: > >>> +static blk_status_t null_finish_zone(struct nullb_device *dev, struct > >>>

Re: [PATCH v2] null_blk: add support for max open/active zone limit for zoned devices

2020-08-28 Thread Klaus Jensen
On Aug 28 07:06, Damien Le Moal wrote: > On 2020/08/27 22:50, Niklas Cassel wrote: > > +static blk_status_t null_finish_zone(struct nullb_device *dev, struct > > blk_zone *zone) > > +{ > > + if (zone->type == BLK_ZONE_TYPE_CONVENTIONAL) > > + return BLK_STS_IOERR; > > + > > + switch