_pos(rq)),
+ return min(blk_max_size_offset(q, offset),
blk_queue_get_max_sectors(q, rq->cmd_flags));
}
--
Damien Le Moal,
System Software Group, WW Research,
HGST, a Western Digital company
Western Digital Corporation (and its subsidiaries) E-mail Confidentiality
Notice & Disclaimer:
This e-mail and
>On Tue 23-02-16 05:31:13, Damien Le Moal wrote:
>>
>> >On 02/22/16 18:56, Damien Le Moal wrote:
>> >> 2) Write back of dirty pages to SMR block devices:
>> >>
>> >> Dirty pages of a block device inode are currently processed using the
&g
>On Wed 24-02-16 01:53:24, Damien Le Moal wrote:
>>
>> >On Tue 23-02-16 05:31:13, Damien Le Moal wrote:
>> >>
>> >> >On 02/22/16 18:56, Damien Le Moal wrote:
>> >> >> 2) Write back of dirty pages to SMR block devices:
>> >&
>On 02/29/2016 10:02 AM, Damien Le Moal wrote:
>>
>>> On Wed 24-02-16 01:53:24, Damien Le Moal wrote:
>>>>
>>>>> On Tue 23-02-16 05:31:13, Damien Le Moal wrote:
>>>>>>
>>>>>>> On 02/22/16 18:
From: Jan Kara <j...@suse.cz>
Date: Monday, February 29, 2016 at 22:40
To: Damien Le Moal <damien.lem...@hgst.com>
Cc: Jan Kara <j...@suse.cz>, "linux-bl...@vger.kernel.org"
<linux-bl...@vger.kernel.org>, Bart Van Assche <bart.vanass
>On 02/22/16 18:56, Damien Le Moal wrote:
>> 2) Write back of dirty pages to SMR block devices:
>>
>> Dirty pages of a block device inode are currently processed using the
>> generic_writepages function, which can be executed simultaneously
>> by multiple
>On 03/18/2016 05:49 AM, Damien Le Moal wrote:
>>
>> libata: Set longer timeout for SETFEATURES_SPINUP
>>
>> For SATA drives with power-up in standby (PUIS) feature set,
>> SETFEATURES_SPINUP execution may be required to get
>> complete IDENTIFY
y super nice. Could we just have the
zoned files contain a single “0” for non-SMR disks ? Or at least have the
file empty and read return 0 Bytes. That would allow applications to easily
and cleanly detect if they are dealing with a SMR disk (or not) instead of
assuming that “-EINVAL” means “not SMR”, whi
n-up drive */
+ SETFEATURES_SPINUP_TIMEOUT = 3,
SETFEATURES_SATA_ENABLE = 0x10, /* Enable use of SATA feature */
SETFEATURES_SATA_DISABLE = 0x90, /* Disable use of SATA feature */
--------
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST,
c.
>The full patchset can be found at:
>
>git.kernel.org/hare/scsi-devel/h/zbc.v6
I do not see a zbc.v6 branch in your scsi-devel tree...
Cheers.
--------
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital company
damien.lem.
applications than
using
something like libzbc which will be sending SG_IOs to retrieve the zone
information
from the disk.
Best regards.
--------
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital brand
damien.lem...@hgst.com
(+81) 0
lock device) does not sound
ideal.
Back to my previous reply, having the sysfs zoned file specifying just the
disk zone size and having an ioctl to retrieve the detailed zone information
looks to me much more sensible.
Best regards.
Damien Le Moal, Ph.D.
Sr. Manager, Sy
ormation on their zone
configuration can be obtained, lets treat those as regular drives.
2) Add ioctls for zone management:
Report zones (get information from RB tree), reset zone (simple wrapper
to ioctl for block discard), open zone, close zone and finish zone. That
will allow mkfs like tools t
Shaun,
On 8/10/16 12:58, Shaun Tancheff wrote:
On Tue, Aug 9, 2016 at 3:09 AM, Damien Le Moal <damien.lem...@hgst.com> wrote:
On Aug 9, 2016, at 15:47, Hannes Reinecke <h...@suse.de> wrote:
[trim]
Since disk type == 0 for everything that isn't HM so I would prefer the
sysfs
he
same hctx, which I think means simply that we need to allow only a single
queue for a ZBC device. If one day we get a fast SSD supporting ZBC/ZAC
commands, this may impact performance though...
I may be completely wrong about this though.
Cheers.
Damien Le Moal,
ged, 5 insertions(+)
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital brand
damien.lem...@hgst.com
(+81) 0466-98-3593 (ext. 513593)
1 kiri
ck/blk-core.c | 2 ++
include/linux/blkdev.h | 2 ++
2 files changed, 4 insertions(+)
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Wes
(u32)SD_MAX_WS10_BLOCKS);
I am still wondering if setting discard_zeroes_data to 1 is the right
choice here since nothing will happen for conventional zones (no
zeroing, no reset, nothing). discard_zeroes_data=0 may be a safer
choice, even though I have not hit any issue wi
GFP_KERNEL);
Christoph suggested that GFP_ATOMIC is more appropriate here instead of
GFP_NOWAIT.
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGS
i/sd.h | 12 +
include/scsi/scsi_proto.h | 17 +++
3 files changed, 144 insertions(+), 5 deletions(-)
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Researc
| 5
block/blk-zoned.c | 70 ++
include/linux/blkdev.h | 47 +
5 files changed, 132 insertions(+)
create mode 100644 block/blk-zoned.c
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Da
On 7/19/16 22:20, Hannes Reinecke wrote:
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
---
block/blk-sysfs.c | 11 +++
1 file changed, 11 insertions(+)
Reviewed-by: Damien L
On 7/19/16 22:20, Hannes Reinecke wrote:
Signed-off-by: Hannes Reinecke <h...@suse.com>
---
block/blk-settings.c | 4
1 file changed, 4 insertions(+)
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien
ien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital brand
damien.lem...@hgst.com
(+81) 0466-98-3593 (ext. 513593)
1 kirihara-cho, Fujisawa,
Kanaga
ged, 7 insertions(+), 1 deletion(-)
Reviewed-by: Damien Le Moal <damien.lem...@hgst.com>
Tested-by: Damien Le Moal <damien.lem...@hgst.com>
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital brand
damien.lem...@hgst.com
(+81) 0466-98-35
tell the difference with direct-to-drive SG_IO accesses. But unlike these, the
zone
ioctls keep the zone information RB-tree cache up to date.
>
> I will be updating my patchset accordingly.
I need to cleanup my code and rebase on top of 4.8-rc1. Let me do this and I
will send
everything
ng the length field makes the code
generic and following the standard, which has no restriction on the
zone sizes. We could do some memory optimisation using different types
of blk_zone sturcts, the types mapping to the SAME value: drives with
constant zone size can use a blk_zone type without the le
this late in
the RC cycle.
Should I keep the fix in its current place and defer the move to
sd_completed_bytes to a later patch for 4.11 ?
> Also, I am no fan of perpetuating the arcane SCSI logging stuff now that
> we have tracing. So just make it a regular sd_printk().
Sure, will do.
Thank you.
--
Bart,
On 2/16/17 10:10, Bart Van Assche wrote:
> On Thu, 2017-02-16 at 09:54 +0900, Damien Le Moal wrote:
>> On 2/16/17 01:42, Bart Van Assche wrote:
>>> An additional concern: what if the size of the Data-Out buffer is not a
>>> multiple of the logical block si
Bart,
On 2/16/17 12:28, Bart Van Assche wrote:
> On Thu, 2017-02-16 at 11:52 +0900, Damien Le Moal wrote:
>> Thanks for the pointers. I checked libiscsi tests. And from what is done
>> there, it seems to me that it is basically impossible to distinguished
>> between a bu
Bart,
On 2/16/17 11:52, Damien Le Moal wrote:
> Bart,
>
> On 2/16/17 10:10, Bart Van Assche wrote:
>> On Thu, 2017-02-16 at 09:54 +0900, Damien Le Moal wrote:
>>> On 2/16/17 01:42, Bart Van Assche wrote:
>>>> An additional concern: what if the size of the Da
lly in favor of just patching mpt3sas since it's clearly
> broken (a disk can't write a partial sector). But I don't think a device
> driver should know how to special case REPORT ZONES or similar. That's
> clearly SBC/ZBC territory, so I prefer the sd_completed_bytes()
> approach.
OK.
Bart,
On 2/21/17 02:34, Bart Van Assche wrote:
> On 02/16/2017 04:20 PM, Damien Le Moal wrote:
>> Move the partial completion alignement check of mpt3sas to a generic
>> implementation in sd_done so that the check ignores REQ_TYPE_FS
>> requests with special payload size han
Martin,
On 2/21/17 11:35, Martin K. Petersen wrote:
>>>>>> "Damien" == Damien Le Moal <damien.lem...@wdc.com> writes:
>
> Hi Damien,
>
> Damien> Move the partial completion alignement check of mpt3sas to a
> Damien> generic imple
also being properly aligned.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com>
Fixes: f2e767bb5d6e ("mpt3sas: Force request partial completion alignment")
---
Changes from v4:
- As suggested by Bart, make sure resid does not exceed good_bytes
- Use sd_printk for message instead
so a huge chunk of the market).
Is there any possibility to get this added to 4.10.0 ?
Best regards.
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Research Group,
Western Digital Corporation
damien.lem...@wdc.com
(+81) 0466-98-3593 (ext. 513593)
1 kirihara-cho, Fujisawa,
Kanagawa,
uest operation may map to different commands depending on the
device type (e.g. REQ_OP_DISCARD which can become unmap or write same in
SCSI).
Martin,
Which approach do you prefer ? Keeping everything contained to mpt3sas
(so basically just fixing the problematic patch), or cleaning up
ever
Martin,
On 2/23/17 13:44, Damien Le Moal wrote:
> I do not see the problematic resid correction code in the mpt3sas driver
> in 4.11/scsi-queue branch. Is this expected ? Did the mpt3sas driver
> updates removed it ?
>
> It looks like that branch is based on 4.10.0-rc2. The mpt3sa
Martin,
On 2/22/17 13:24, Martin K. Petersen wrote:
>>>>>> "Damien" == Damien Le Moal <damien.lem...@wdc.com> writes:
>
> Damien,
>
> Damien> I think we would still need the check for REQ_TYPE_FS to avoid
> Damien> interfering with SG_I
Bart,
On 2/14/17 03:57, Bart Van Assche wrote:
> On Mon, 2017-02-13 at 14:11 +0900, Damien Le Moal wrote:
>> The ZBC_IN command (REPORT ZONES) reply length is always a multiple of
>> 64B and thus may not be aligned on the device LBA size.
>> For this command, retry due to the
the
type for requests issued internally (scsi_execute) of from things like
the SG driver, so in essence, all requests not derived from a BIO... Is
this correct ? If yes, then setting the BLOCK_TYPE_PC for
REQ_OP_ZONE_REPORT (and REQ_OP_ZONE_RESET while at it) would break this
model, wouldn't i
Christoph,
On 2/14/17 15:18, h...@lst.de wrote:
> On Tue, Feb 14, 2017 at 02:21:37PM +0900, Damien Le Moal wrote:
>>> I think we want to keep the knowledge of which requests have a request size
>>> that should be a multiple of the logical block size in the block layer core
&g
Bart,
On 2/14/17 14:11, Bart Van Assche wrote:
> On Tue, 2017-02-14 at 13:42 +0900, Damien Le Moal wrote:
>> I think so. But my understanding of REQ_TYPE_BLOCK_PC is that it is the
>> type for requests issued internally (scsi_execute) of from things like
>> the SG drive
he partial completion alignement check of mpt3sas to sd_done so
that the check comes after good_bytes & resid corrections of done in
that function depending on the request command to avoid false positive.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com>
---
Changes from v2
e handling are ignored.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com>
---
Changes from v3:
- Moved check to initial switch-case so that commands with special payload
handling are ignored.
Changes from v2:
- Fixed good_bytes calculation after correction of unaligned resid
It shou
upport
that was newly added to 4.10. So we need a fix for that and your issue
combined before Linus releases 4.10 stable this weekend.
Thanks.
Best regards.
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Research Group,
Western Digital Corporation
damien.lem...@wdc.com
(+81) 0466-98-359
The ZBC_IN command (REPORT ZONES) reply length is always a multiple of
64B and thus may not be aligned on the device LBA size.
For this command, retry due to the unaligned completion length is
incorrect so do not check alignment of the reply length.
Signed-off-by: Damien Le Moal <damien.
Bart,
On 2/16/17 00:10, Bart Van Assche wrote:
> On Wed, 2017-02-15 at 11:12 +0900, Damien Le Moal wrote:
>> +resid = round_up(resid, sector_size);
>> +if (resid < good_bytes)
>> +good_bytes -= resid;
>
Bart,
On 2/16/17 01:42, Bart Van Assche wrote:
> On Wed, 2017-02-15 at 11:12 +0900, Damien Le Moal wrote:
>> diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
>> index 1f5d92a..d05a328 100644
>> --- a/drivers/scsi/sd.c
>> +++ b/drivers/scsi/sd.c
>> @@ -1790,6 +17
initialized in sd_zbc_read_zones() but that
initialization is not necessary.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com>
---
drivers/scsi/sd_zbc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/scsi/sd_zbc.c b/drivers/scsi/sd_zbc.c
index 789c970..cf2c6a7 100644
From: Bart Van Assche
Commit f2e767bb5d6e ("mpt3sas: Force request partial completion
alignment") introduced a forced alignment of resid to the device
logical block size to fix bogus HBA firmware sometimes returning an
unaligned value. This fix however did not
eventual problems with bogus hardware.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com>
---
drivers/scsi/sd.c | 36 ++
drivers/scsi/sd.h | 11 +++---
drivers/scsi/sd_zbc.c | 101 +-
3 files changed, 84 insertions(
mands").
The second patch, from Bart, cleans up unused variable assignments in
sd_zbc_read_zones().
Bart Van Assche (1):
sd_zbc: Remove superfluous assignments
Damien Le Moal (1):
sd: Rework ZBC integration
drivers/scsi/sd.c | 36 ++---
drivers/scsi/sd.h | 11 +++---
dr
From: Bart Van Assche
Use blk_rq_accesses_medium() instead of !blk_rq_is_passthrough() to
ensure that code that is intended for normal medium access requests,
e.g. DISCARD, READ and WRITE requests, is not applied to
REQ_OP_ZONE_REPORT requests nor to REQ_OP_ZONE_RESET
This series introduces blk_rq_accesses_medium(), which is equivalent to
!blk_rq_is_passthrough() minus the zone request operations REQ_OP_ZONE_REPORT
and REQ_OP_ZONE_RESET. This new helper allows avoiding problems due to the
non-standard nature of these commands (report zones does no operate on
From: Bart Van Assche
A medium access request is defined as an internal regular request that
operates on a whole number of logical blocks of the storage medium.
These include REQ_OP_READ, REQ_OP_WRITE, REQ_OP_FLUSH, REQ_OP_DISCARD,
REQ_OP_SECURE_ERASE,
ch case so that the report and
reset zone commands are ignored. In addition, as sd_done() is not
called for passthrough requests, resid corrections are not done as
intended by the initial mpt3sas patch.
Fixes: f2e767bb5d6e ("mpt3sas: Force request partial completion alignment")
Signed-off-by: Damien
Martin,
On 3/1/17 12:21, Martin K. Petersen wrote:
>>>>>> "Damien" == Damien Le Moal <damien.lem...@wdc.com> writes:
>
> Damien,
>
> Damien> The problem remains that the mpt3sas driver needs fixing. As you
> Damien> suggest, we can do that
()
defined. We could move that to include/scsi/scsi.h (or scsi_proto.h) and
use it in place of blk_rq_accesses_medium() in the mpt3sas driver to not
force unaligned resid corrections for zone commands. Would that be
acceptable ?
Best regards.
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Resea
Shaun,
On 8/23/16 09:22, Shaun Tancheff wrote:
> On Mon, Aug 22, 2016 at 6:57 PM, Damien Le Moal <damien.lem...@hgst.com>
> wrote:
>>
>> Shaun,
>>
>> On 8/22/16 13:31, Shaun Tancheff wrote:
>> [...]
>>> -int sd_zbc_setup
FFLINE) {
> - /* let the drive fail the command */
> - sd_zbc_debug_ratelimit(sdkp,
> -"zone %zu offline\n",
> -zone->start);
> - goto out;
> - }
> -
> - if (b
nition of REQ_OP_BITS.
Signed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
---
block/blk-core.c
From: Hannes Reinecke <h...@suse.de>
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: Updated Documentation/ABI/testing/sysfs-block]
Signed-off-by: Damien Le Moal <damien.
ed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
---
block/blk-zoned.c | 93
n 512B sectors) of the zones of the device.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: * Removed the zone cache
* Implement report zones operation based on earlier proposal
by Shaun Tancheff <shaun.tanch...@seagate.com>]
Signed-off-by: Damien Le Moal <d
t-processing based
on code from Shaun Tancheff <shaun.tanch...@seagate.com>
* Removed confusing use of 512B sector units in functions
interface]
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-b
and bdev_is_zoned
return a boolean for callers to test if a block device is zoned.
The zoned attribute is also exported as a string to applications via
sysfs. BLK_ZONED_NONE shows as "none", BLK_ZONED_HA as "host-aware" and
BLK_ZONED_HM as "host-managed".
Signed-off-by: Damien L
From: Hannes Reinecke <h...@suse.de>
Signed-off-by: Hannes Reinecke <h...@suse.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
Reviewed-b
rom v2:
* Use kcalloc to allocate zone information array for ioctl
* Use kcalloc to allocate zone information array for ioctl
* Export GPL the functions blkdev_report_zones and blkdev_reset_zones
* Shuffled uapi definitions from patch 7 into patch 5
Damien Le Moal (1):
block: Add 'zoned' queue
From: Hannes Reinecke <h...@suse.de>
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: Updated Documentation/ABI/testing/sysfs-block]
Signed-off-by: Damien Le Moal <damien.
From: Hannes Reinecke <h...@suse.de>
Signed-off-by: Hannes Reinecke <h...@suse.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
Reviewed-b
n 512B sectors) of the zones of the device.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: * Removed the zone cache
* Implement report zones operation based on earlier proposal
by Shaun Tancheff <shaun.tanch...@seagate.com>]
Signed-off-by: Damien Le Moal <d
t-processing based
on code from Shaun Tancheff <shaun.tanch...@seagate.com>
* Removed confusing use of 512B sector units in functions
interface]
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-b
and bdev_is_zoned
return a boolean for callers to test if a block device is zoned.
The zoned attribute is also exported as a string to applications via
sysfs. BLK_ZONED_NONE shows as "none", BLK_ZONED_HA as "host-aware" and
BLK_ZONED_HM as "host-managed".
Signed-off-by: Damien L
ed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
Reviewed-by: Hannes Reinecke <h...@suse.com>
---
nition of REQ_OP_BITS.
Signed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
Reviewed-by: Christoph Hellwig <h...@lst.de>
Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com>
Reviewed-by: Hannes Reinecke &
set_zones
* Shuffled uapi definitions from patch 7 into patch 5
Damien Le Moal (1):
block: Add 'zoned' queue limit
Hannes Reinecke (4):
blk-sysfs: Add 'chunk_sectors' to sysfs attributes
block: update chunk_sectors in blk_stack_limits()
block: Implement support for zoned block devices
sd: Implemen
h Hellwig <h...@lst.de>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-core.c| 42 ++
drivers/scsi/scsi_lib.c | 1 +
include/linux/blkdev.h | 1 +
3 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/bloc
fields and use CPU
endianness)
* Changed report ioctl to operate on single zone instead of an
array of blkzone structures.
Signed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-zoned.c
pacity of conventional zones at the beginning of the LBA range
(i.e. devices with rc_basis et to 0).
Signed-off-by: Hannes Reinecke <h...@suse.de>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
drivers/scsi/Makefile |1 +
drivers/scsi/sd.c | 147 --
From: Hannes Reinecke <h...@suse.de>
Signed-off-by: Hannes Reinecke <h...@suse.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-settings.c | 4
1 file changed, 4 insertions(+)
diff --git a/block/blk-settings.c b/block/blk-settings.c
index b1d5b
ock in place of a regular
spinlock
* Request zone operations to the underlying block device driver
through BIO operations with the operation codes REQ_OP_ZONE_*.
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/Kconfig | 8 ++
block/Makefile | 1 +
From: Hannes Reinecke <h...@suse.de>
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-sysfs.c | 11 +++
on raw
block devices (e.g. mkfs.xxx) to discover a device zone layout and
manipulate zone state.
Damien Le Moal (1):
block: Add 'zoned' queue limit
Hannes Reinecke (6):
blk-sysfs: Add 'chunk_sectors' to sysfs attributes
block: update chunk_sectors in blk_stack_limits()
block: Implement
From: Hannes Reinecke <h...@suse.de>
Add a return value BLK_MQ_RQ_QUEUE_DONE to terminate a request
without error.
Signed-off-by: Hannes Reinecke <h...@suse.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-mq.c | 1 +
drivers/scsi/scsi_lib.
tor and size are aigned on a zone).
REQ_OP_ZONE_REPORT is not sent directly to the device
and is processed in sd_zbc.c using the device zone work
in order to parse the report reply and manage changes to
the zone information cache of the device.
Signed-off-by: Damien Le Moal <damien.lem...@hgst.
sysfs. BLK_ZONED_NONE shows as "none", BLK_ZONED_HA as "host-aware" and
BLK_ZONED_HM as "host-managed".
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-settings.c | 1 +
block/blk-sysfs.c | 18 ++
include/linux/blkdev
w what you think. If we drop this, we can get a clean
and full ZBC support patch set ready in no time at all.
Best regards.
--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Group, HGST Research,
HGST, a Western Digital brand
damien.lem...@hgst.com
(+81) 0466-98-3593 (ext. 513593)
1 ki
Martin,
On 9/28/16 12:54, Martin K. Petersen wrote:
>>>>>> "Damien" == Damien Le Moal <damien.lem...@hgst.com> writes:
>
> Purely cosmetic: Looks like whitespace is a bit funky (spaces instead of
> tabs several places). Also a few typos.
>
>
n 512B sectors) of the zones of the device.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: * Removed the zone cache
* Implement report zones operation based on earlier proposal
by Shaun Tancheff <shaun.tanch...@seagate.com>]
Signed-off-by: Damien Le Moal <d
ed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-zoned.c | 93 +++
block/ioctl.c | 4 ++
include/linux/blkdev.h| 22 ++
include/uap
* Modified sd_zbc_read_zones to include checks that the
device satisfies the kernel constraints
* Implemeted REPORT ZONES setup and post-processing based
on code from Shaun Tancheff <shaun.tanch...@seagate.com>]
Signed-off-by: Damien Le Moal <damien.lem...@h
nition of REQ_OP_BITS.
Signed-off-by: Shaun Tancheff <shaun.tanch...@seagate.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-core.c | 4
include/linux/blk_types.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/block/blk-core.c b/bloc
rt GPL the functions blkdev_report_zones and blkdev_reset_zones
* Shuffled uapi definitions from patch 7 into patch 5
Damien Le Moal (1):
block: Add 'zoned' queue limit
Hannes Reinecke (4):
blk-sysfs: Add 'chunk_sectors' to sysfs attributes
block: update chunk_sectors in blk_stack_limits()
and bdev_is_zoned
return a boolean for callers to test if a block device is zoned.
The zoned attribute is also exported as a string to applications via
sysfs. BLK_ZONED_NONE shows as "none", BLK_ZONED_HA as "host-aware" and
BLK_ZONED_HM as "host-managed".
Signed-off-by: Damien L
From: Hannes Reinecke <h...@suse.de>
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-sysfs.c | 11 +++
From: Hannes Reinecke <h...@suse.de>
Signed-off-by: Hannes Reinecke <h...@suse.com>
Signed-off-by: Damien Le Moal <damien.lem...@hgst.com>
---
block/blk-settings.c | 4
1 file changed, 4 insertions(+)
diff --git a/block/blk-settings.c b/block/blk-settings.c
index b1d5b
* Use kcalloc to allocate zone information array for ioctl
* Export GPL the functions blkdev_report_zones and blkdev_reset_zones
* Shuffled uapi definitions from patch 7 into patch 5
Damien Le Moal (1):
block: Add 'zoned' queue limit
Hannes Reinecke (4):
blk-sysfs: Add 'chunk_sectors' to
From: Hannes Reinecke <h...@suse.de>
The queue limits already have a 'chunk_sectors' setting, so
we should be presenting it via sysfs.
Signed-off-by: Hannes Reinecke <h...@suse.de>
[Damien: Updated Documentation/ABI/testing/sysfs-block]
Signed-off-by: Damien Le Moal <damien.
and bdev_is_zoned
return a boolean for callers to test if a block device is zoned.
The zoned attribute is also exported as a string to applications via
sysfs. BLK_ZONED_NONE shows as "none", BLK_ZONED_HA as "host-aware" and
BLK_ZONED_HM as "host-managed".
Signed-off-by: Damien L
1 - 100 of 392 matches
Mail list logo