Re: atomic queue limits updates v3

2024-01-31 Thread Martin K. Petersen
changes and things get cleaned up nicely. We'll probably have to coordinate the sd changes a bit. Anyway. Great to finally get this resolved! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/1] block: add default clause for unsupported T10_PI types

2019-09-22 Thread Martin K. Petersen
e function but that does not satisfy the -Wswitch logic either. Anyway. Enough energy wasted on this. I'm OK with either the default: case or Max' if statement approach. My objection is purely wrt. introducing semantically incorrect and/or unreachable code to silence compiler warnings. Se

Re: [PATCH 1/1] block: add default clause for unsupported T10_PI types

2019-09-21 Thread Martin K. Petersen
ther up the stack preventing that from ever happening. Adding a Type 0 here gives the reader the false impression that it's valid input to the function. Which it really isn't. Arnd: Any ideas how to handle this? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: centralize PI remapping logic to the block layer

2019-09-16 Thread Martin K. Petersen
. So my preference is to just leave things as-is for now. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v5 2/2] block: centralize PI remapping logic to the block layer

2019-09-13 Thread Martin K. Petersen
Jens, > While I like the idea of centralizing stuff like this, I'm also not > happy with adding checks like this to the fast path. Yeah, but at least it's just checking a request queue flag. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v5 2/2] block: centralize PI remapping logic to the block layer

2019-09-13 Thread Martin K. Petersen
s. Introduce > .prepare_fn and .complete_fn callbacks within the integrity profile > that each type can implement according to its needs. LGTM. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v5 1/2] block: use symbolic constants for t10_pi type

2019-09-13 Thread Martin K. Petersen
Max, Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: centralize PI remapping logic to the block layer

2019-09-13 Thread Martin K. Petersen
not. So it is unclear whether implementors (if any) went with the SCSI compatible route or with what the NVMe spec actually says. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: centralize PI remapping logic to the block layer

2019-09-10 Thread Martin K. Petersen
it" and everything else is legacy. > > do you see any reason to support the broken type 3 ? Only to support existing installations. We can't really remove it without the risk of breaking something for somebody out there. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: centralize PI remapping logic to the block layer

2019-09-09 Thread Martin K. Petersen
format). Anyway. So my take on all this is that the T10-DIF-TYPE1-CRC profile is "it" and everything else is legacy. > I think I'll prepare dummy/empty callbacks for type3 and for nop > profiles instead of setting it to NULL. > > agreed ? Sure. Whatever works. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 2/3] block: don't remap ref tag for T10 PI type 0

2019-09-08 Thread Martin K. Petersen
egrity profile in that case (see previous mail about why keying off of the protection_type is a problem). -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 2/3] block: don't remap ref tag for T10 PI type 0

2019-09-08 Thread Martin K. Petersen
Max, > Only type 1 and type 2 have a reference tag by definition. DIX Type 0 needs remapping so this assertion is not correct. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: centralize PI remapping logic to the block layer

2019-09-08 Thread Martin K. Petersen
t for the Type 1 profile. > static inline unsigned short > +blk_integrity_interval_shift(struct request_queue *q) > +{ > + return q->limits.logical_block_shift; > +} > + Why not use bio_integrity_intervals() or bi->interval_exp? Note that for T10 PI Type 2, the protection inter

Re: [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

2019-08-07 Thread Martin K. Petersen
oth land linus tree. I'll set up an amalgamated for-next branch tomorrow. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] block: fix RO partition with RW disk

2019-08-07 Thread Martin K. Petersen
Junxiao, > Anybody could help review this bug? It's on my list. However, your patch is clashing with my general read-only handling changes so I'll probably need to roll your changes into mine. I'll try to look at this today. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2 0/4] block: introduce REQ_OP_ZONE_RESET_ALL

2019-08-02 Thread Martin K. Petersen
Jens, > Martin, I'd like someone to vet/review the SCSI side of it before I > apply it. Looks good to me. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2 3/4] scsi: implement REQ_OP_ZONE_RESET_ALL

2019-08-02 Thread Martin K. Petersen
by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [RESEND PATCH] mpt3sas: support target smid for [abort|query] task

2019-07-30 Thread Martin K. Petersen
thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2] scsi: sd_zbc: Fix compilation warning

2019-07-16 Thread Martin K. Petersen
Damien, > kbuild test robot gets the following compilation warning using gcc 7.4 > cross compilation for c6x (GCC_VERSION=7.4.0 make.cross ARCH=c6x). Applied to 5.3/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V4 1/9] block: add a helper function to read nr_setcs

2019-07-16 Thread Martin K. Petersen
ould you prefer adding a check ? I checked your call sites and they look fine. Also, I don't think returning a capacity of 0 on error is going to help us much. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sd_zbc: Fix compilation warning

2019-07-16 Thread Martin K. Petersen
Damien, > Do you want me to send a new version with updated commit message and > Fixes tag ? Or will you fix that when applying ? Please send me a tweaked one and I'll apply it right away. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sd_zbc: Fix compilation warning

2019-07-16 Thread Martin K. Petersen
Jens, > Otherwise obviously looks fine to me. Martin, do you want to pick this > one up? Yep, I'll merge it. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/3] block: set ioprio for write-zeroes, discard etc

2019-07-11 Thread Martin K. Petersen
Chaitanya, > Set the current process's iopriority for discard, write-zeroes and > write-same operations. OK. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/3] block: set ioprio for flush bio

2019-07-11 Thread Martin K. Petersen
Chaitanya, > Set the current process's iopriority for flush bio. Kind of weird for a flush command. But we might as well be consistent. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/3] block: set ioprio for zone-reset bio

2019-07-11 Thread Martin K. Petersen
Chaitanya, > Set the current process's iopriority to the bio for REQ_OP_ZONE_RESET. Looks fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V4 1/9] block: add a helper function to read nr_setcs

2019-07-11 Thread Martin K. Petersen
Hi Chaitanya, > +static inline sector_t bdev_nr_sects(struct block_device *bdev) > +{ > + return part_nr_sects_read(bdev->bd_part); > +} Can bdev end up being NULL in any of the call sites? Otherwise no objections. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] block/bio-integrity: fix a memory leak bug

2019-07-11 Thread Martin K. Petersen
Wenwen, > To fix this issue, free the allocated buffer before returning from > bio_integrity_prep(). Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 4/4] block, documentation: Document discard_zeroes_data, fua, max_discard_segments and write_zeroes_max_bytes

2019-06-28 Thread Martin K. Petersen
Bart, Looks fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/4] block, documentation: Fix wbt_lat_usec documentation

2019-06-28 Thread Martin K. Petersen
Bart, > Fix the spelling of the wbt_lat_usec sysfs attribute. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/4] block, documentation: Sort queue sysfs attribute names alphabetically

2019-06-28 Thread Martin K. Petersen
Bart, > Commit f9824952ee1c ("block: update sysfs documentation") # v5.0 broke > the alphabetical order of the sysfs attribute names. List queue sysfs > attribute names alphabetically. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/4] block, documentation: Explain the word 'segments'

2019-06-28 Thread Martin K. Petersen
nds for. I don't have a problem clarifying the documentation. But the sysfs knobs have a "segment" suffix so for better or for worse it is part of the block layer lingo. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] block: Rename hd_struct.policy into hd_struct.read_only

2019-06-28 Thread Martin K. Petersen
net/lists/linux-scsi/msg129146.html). This patch > is an extension of a subset of Martin's patch. I'd rather we just get this one merged: https://patchwork.kernel.org/patch/10967367/ It even comes with a shiny blktest. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bcache: make stripe_size configurable and persistent for hardware raid5/6

2019-06-25 Thread Martin K. Petersen
r the VPD page to be present. The protocol feature is not tied to the transport signaling speed in any way. But general support for the BL VPD page roughly coincided with vendors introducing 12 Gbps SAS and 16 Gbps FC products to the market. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bcache: make stripe_size configurable and persistent for hardware raid5/6

2019-06-24 Thread Martin K. Petersen
's Block Limits directly: # sg_vpd -p bl /dev/sdX If you want to tinker, you can simulate a SCSI disk with your choice of io_opt: # modprobe scsi_debug opt_blks=N where N is the number of logical blocks to report as being the optimal I/O size. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bcache: make stripe_size configurable and persistent for hardware raid5/6

2019-06-22 Thread Martin K. Petersen
Eric, > While some drivers set queue_limits.io_opt (e.g., md raid5), there are > currently no SCSI/RAID controller drivers that do. That's not true. Lots of SCSI RAID devices report a stripe width. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2 2/2] block: add more debug data to print_req_err

2019-06-13 Thread Martin K. Petersen
So it would be good to use the same plumbing for both. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2 2/2] block: add more debug data to print_req_err

2019-06-13 Thread Martin K. Petersen
int exactly the same string for both error log messages and tracepoints. Since Chaitanya is doing a lot of work in this area anyway, that may be worth looking into? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] block: use req_op() to maintain consistency

2019-06-13 Thread Martin K. Petersen
Chaitanya, > This is a pure code cleanup patch and doesn't change any functionality. > In block layer to identify the request operation req_op() macro is > used, so change the open coding the req_op() in the blk-mq-debugfs.c. Looks good. Reviewed-by: Martin K. Petersen

Re: properly communicate queue limits to the DMA layer

2019-06-07 Thread Martin K. Petersen
. I'll monitor and merge them. -- Martin K. Petersen Oracle Linux Engineering

[PATCH v2] blktests: block/022: Add tests to verify read-only state transitions

2019-05-29 Thread Martin K. Petersen
in the block layer. Signed-off-by: Martin K. Petersen --- v2: Hadn't verified the non-sdebug-wp parameter case after I changed output format. Fixed. --- tests/block/022 | 92 + tests/block/022.out | 22 +++ 2 files changed, 114 inser

[PATCH] block: Fix read-only block device setting after revalidate

2019-05-29 Thread Martin K. Petersen
set, both the whole disk device and any partitions will reflect the current write-protect state of the underlying device. Cc: Cc: Jeremy Cline Cc: Ewan D. Milne Reported-by: Oleksii Kurochko Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201221 Signed-off-by: Martin K. Petersen ---

[PATCH] blktests: block/022: Add tests to verify read-only state transitions

2019-05-29 Thread Martin K. Petersen
in the block layer. Signed-off-by: Martin K. Petersen --- tests/block/022 | 92 + tests/block/022.out | 22 +++ 2 files changed, 114 insertions(+) create mode 100755 tests/block/022 create mode 100644 tests/block/022.out diff --git a

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
ial filesystem blocks are zeroed, and whole filesystem blocks are removed from the file. After a successful call, subsequent reads from this range will return zeroes." That matches the block device behavior as far as I'm concerned. -- Martin K. Petersen Oracle Linux Engineering

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
rence between (1) and (3) would be negligible and make this distinction moot. However, we have to support devices that have a wide variety of media and hardware characteristics. So I don't see pure deallocate going away. Doesn't mean that I am not pushing vendors to handle (3) because I think it is very important. And why we defined WRITE ZEROES in the first place. -- Martin K. Petersen Oracle Linux Engineering

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
. We have: Allocate and zero: FALLOC_FL_ZERO_RANGE Deallocate and zero: FALLOC_FL_PUNCH_HOLE Deallocate: FALLOC_FL_PUNCH_HOLE | FALLOC_FL_NO_HIDE_STALE but are missing: Allocate:FALLOC_FL_ZERO_RANGE | FALLOC_FL_NO_HIDE_STALE The devices that implement anchor s

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
pin down important areas to ensure one doesn't get ENOSPC when writing journal or metadata. However, these are typically the areas that we deliberately zero to ensure predictable results. So I think the only case where anchoring makes much sense is on devices that do zero detection and thus w

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
MAP command). WRITE SAME also has an ANCHOR flag which provides a use case we currently don't have fallocate plumbing for: Allocating blocks without caring about their contents. I.e. the blocks described by the I/O are locked down to prevent ENOSPC for future writes. -- Martin K. Petersen Oracle Linux Engineering

Re: Testing devices for discard support properly

2019-05-08 Thread Martin K. Petersen
? The problem is that most vendors implement (3) using (1). But can't make it work well because (3) was -- and still is for ATA -- outside the scope of what the protocols can express. And I agree with you that if (3) was implemented correctly in all devices, we wouldn't need (1) at all

Re: [LSF/MM TOPIC] guarantee natural alignment for kmalloc()?

2019-04-25 Thread Martin K. Petersen
Matthew, > Do we have an lsf-discuss mailing list this year? Might be good to > coordinate arrivals / departures for taxi sharing purposes. l...@lists.linux-foundation.org -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/2] block: integrity: enable multi-page bvec for bio integrity

2019-04-24 Thread Martin K. Petersen
/O patterns that produced a single, non-mergeable 8 byte integrity metadata allocation for every 512 bytes of data in the I/O. It's a pathological corner case. Just make sure it's something you handle when you muck with this. ext[23] and dd to the block device used to be able to reproduc

Re: [PATCH v3 2/3] block: verify data when endio

2019-04-02 Thread Martin K. Petersen
are in sync. For the retry stuff we should have a similar expectation. It doesn't have to be fancy. I'm perfectly happy with a check at mkfs/growfs time that complains if the resulting configuration violates whichever alignment and other assumptions we end up baking into this. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 2/3] block: verify data when endio

2019-04-01 Thread Martin K. Petersen
order for us to build highly reliable systems, we have to have a better building block than "this redundancy retry feature works most of the time". So to me it is imperative that we provide hard guarantees once a particular configuration has been set up and stacked. And if the retry guarantee is somehow invalidated, then we really need to let the user know about it. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 2/3] block: verify data when endio

2019-03-29 Thread Martin K. Petersen
ify an arbitrary multiple of 512 bytes at any 512-byte offset inside a submitted bio. That would work, but I don't think that's the pony the filesystem were wishing for? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 1/3] block: introduce submit_bio_verify()

2019-03-29 Thread Martin K. Petersen
cy inside the array and therefore not MD. But I think there are other problems with the callback approach. See my impending email. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 2/3] block: verify data when endio

2019-03-29 Thread Martin K. Petersen
Jens, > The integrity stuff still has that nasty pointer in there. It'd be > nice to get rid of that as well, and hide it all in a parent container > of the bio. That's fine with me. We really didn't have that option a decade ago. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 2/3] block: verify data when endio

2019-03-29 Thread Martin K. Petersen
that. We'll just need to handle it exactly like the integrity stuff. We only allocate the extra bits when the underlying device indicates that it's required and desired. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 2/3] block: verify data when endio

2019-03-29 Thread Martin K. Petersen
purpose of the series is to solicit feedback on the callback approach. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3] scsi: sd: block: Fix regressions in read-only block device handling

2019-03-06 Thread Martin K. Petersen
olicy" means, rename the field to > "read_only" for clarity. > > Cc: Jeremy Cline > Cc: Oleksii Kurochko > Cc: sta...@vger.kernel.org # v4.16+ > Reported-by: Oleksii Kurochko > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201221 > Fixes: 20bd1d02

[PATCH v3] scsi: sd: block: Fix regressions in read-only block device handling

2019-02-26 Thread Martin K. Petersen
a: https://bugzilla.kernel.org/show_bug.cgi?id=201221 Fixes: 20bd1d026aac ("scsi: sd: Keep disk read-only when re-reading partition") Signed-off-by: Martin K. Petersen --- v3: - Drop ?: since gcc complains about mixing int and bool (zeroday) - Drop EXPORT_SYMBOL (hch) - s

Re: [LSF/MM TOPIC] More async operations for file systems - async discard?

2019-02-22 Thread Martin K. Petersen
essful in compelling the drive manufacturers to make DEALLOCATE perform well for typical application workloads. So I'm not holding my breath... -- Martin K. Petersen Oracle Linux Engineering

Re: [LSF/MM TOPIC] More async operations for file systems - async discard?

2019-02-21 Thread Martin K. Petersen
d is dead on anything but the cheapest devices. And on those it is probably going to be performance-prohibitive to use it in any other way than a weekly fstrim. -- Martin K. Petersen Oracle Linux Engineering

Re: [LSF/MM TOPIC] More async operations for file systems - async discard?

2019-02-21 Thread Martin K. Petersen
devices really need to distinguish between discard-as-a-hint where it is free to ignore anything that's not a whole multiple of whatever the internal granularity is, and the WRITE ZEROES use case where the end result needs to be deterministic. -- Martin K. Petersen Oracle Linux Engineering

Re: Regression: NVMe: kernel BUG at lib/sg_pool.c:103!

2019-02-21 Thread Martin K. Petersen
x27;t handle the NVMe WRITE ZEROES command. That seems like something that will cause us headaches in the future... -- Martin K. Petersen Oracle Linux Engineering

Re: Regression: NVMe: kernel BUG at lib/sg_pool.c:103!

2019-02-20 Thread Martin K. Petersen
Chaitanya, > - if (!blk_rq_payload_bytes(rq)) > + if (!blk_rq_nr_phys_segments(rq)) Wouldn't it be better to set RQF_SPECIAL_PAYLOAD and friends in nvme_setup_write_zeroes() like it's done for discard? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: sd: block: Fix regressions in read-only block device handling

2019-02-19 Thread Martin K. Petersen
x27;t see it because the device setting always took precedence and voided any user setting. -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-02-19 Thread Martin K. Petersen
we stick with the UINT_MAX check, the comment should at least point out why it's there. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: sd: block: Fix regressions in read-only block device handling

2019-02-15 Thread Martin K. Petersen
# v4.16+ > Reported-by: Oleksii Kurochko > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201221 > Fixes: 20bd1d026aac ("scsi: sd: Keep disk read-only when re-reading > partition") > Signed-off-by: Martin K. Petersen > > --- > > v2: > - Trac

Re: [PATCH v2 2/2] loop: Better discard support for block devices

2019-02-13 Thread Martin K. Petersen
e same as discarding. -- Martin K. Petersen Oracle Linux Engineering

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-02-13 Thread Martin K. Petersen
zhangxiaoxu, > Any progress about the problme? > Should we disable the write same when stack the different LBA disks? Yes, please. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 1/2] loop: Report EOPNOTSUPP properly

2019-02-13 Thread Martin K. Petersen
ry and > not helpful in debugging. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

[PATCH v2] scsi: sd: block: Fix regressions in read-only block device handling

2019-02-12 Thread Martin K. Petersen
when re-reading partition") Signed-off-by: Martin K. Petersen --- v2: - Track user read-only state in a bitmap - Work around the regression that caused us to drop user preferences on revalidate --- block/genhd.c | 22 +- block/ioct

Re: [PATCH] scsi: sd: fix entropy gathering for most rotational disks

2019-02-12 Thread Martin K. Petersen
Yeah, this looks good to me. I'll queue it up for fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sd: block: Handle cases where devices come online read-only

2019-02-12 Thread Martin K. Petersen
rified that the code does the right thing. But obviously I have my doubts about $RANDOM_USB_GIZMO. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sd: block: Handle cases where devices come online read-only

2019-02-12 Thread Martin K. Petersen
for stable. The intent with this patch was merely as a workaround for people stuck with write-protected drives after boot. The tristate wasn't my first choice, but it turned out to be the path of least resistance for a stable fix. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sd: block: Handle cases where devices come online read-only

2019-02-12 Thread Martin K. Petersen
he disk as writable again since this would be > true. Perhaps it's a somewhat far-fetched scenario. OK, I missed that particular entry point. Will fix. -- Martin K. Petersen Oracle Linux Engineering

[PATCH] scsi: sd: block: Handle cases where devices come online read-only

2019-02-08 Thread Martin K. Petersen
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201221 Fixes: 20bd1d026aac ("scsi: sd: Keep disk read-only when re-reading partition") Signed-off-by: Martin K. Petersen --- I have verified that get_disk_ro() and bdev_read_only() callers all handle the additional value correctly. Same

Re: remove exofs, the T10 OSD code and block/scsi bidi support V4

2019-02-04 Thread Martin K. Petersen
d for years and is getting in the > way of block / SCSI changes, and does not even work properly currently, > so I think it's finally time to drop it. Applied to 5.1/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: block: Fix a WRITE SAME BUG_ON

2019-01-30 Thread Martin K. Petersen
c. But adoption has been pretty slow. I don't have any problems keeping WRITE_SAME around if people are actually using it. It just seemed like most active users only cared about writing zeroes. -- Martin K. Petersen Oracle Linux Engineering

Re: block: Fix a WRITE SAME BUG_ON

2019-01-28 Thread Martin K. Petersen
evant due to the payload being the ZERO_PAGE), it may be worthwhile to remove REQ_OP_WRITE_SAME. I think drbd is the only user relying on a non-zero payload. The target code ends up manually iterating, if I remember correctly... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: isci: initialize shost fully before calling scsi_add_host()

2019-01-15 Thread Martin K. Petersen
in the various SCSI structs. So I don't have any problem killing the wrappers except they may actually be handy for regressions like this one where you could #error if the driver writer violates the ordering requirement. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 05/15] Add io_uring IO interface

2019-01-15 Thread Martin K. Petersen
es / 128 bits that we can grab for things like KV. Great! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: isci: initialize shost fully before calling scsi_add_host()

2019-01-11 Thread Martin K. Petersen
nitialization. So that's something I think we could--and should--improve. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 05/15] Add io_uring IO interface

2019-01-11 Thread Martin K. Petersen
key. How do we extend this interface beyond the flags? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: isci: initialize shost fully before calling scsi_add_host()

2019-01-08 Thread Martin K. Petersen
Logan, > To prevent this, the calls to scsi_host_set_prot() are moved into > isci_host_alloc() before the call to scsi_add_host(). Out of caution, > also move the similar call to scsi_host_set_guard(). Applied to 5.0/scsi-fixes. Thanks much! -- Martin K. Petersen Ora

Re: remove the "clustering" flag V2

2018-12-18 Thread Martin K. Petersen
Jens, > You can add my reviewed-by to 10 and add that one too, that makes more > sense than me adding it for a post-merge pull. But either way works > for me. OK, done. -- Martin K. Petersen Oracle Linux Engineering

Re: remove the "clustering" flag V2

2018-12-18 Thread Martin K. Petersen
for me to pull in). -- Martin K. Petersen Oracle Linux Engineering

Re: Question on t10_pi_ref_tag()

2018-12-14 Thread Martin K. Petersen
John, > What would we be missing that this is unset? 60a89a3ce0cc scsi: t10-pi: Return correct ref tag when queue has no integrity profile -- Martin K. Petersen Oracle Linux Engineering

Re: DIF/DIX issue related to config CONFIG_SCSI_MQ_DEFAULT

2018-12-06 Thread Martin K. Petersen
ingle I/O to complete. I'll try to hack away at it tomorrow. > BTW, on a loosely related topic, in drivers/scsi/sd.h, I noticed that > the arrays in sd_prot_op() and sd_prot_flag_mask() could be made > static. In doing so I found sd.o object code shrunk by ~100B. Will fix, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: DIF/DIX issue related to config CONFIG_SCSI_MQ_DEFAULT

2018-12-05 Thread Martin K. Petersen
to test against for this transport. We did a preliminary qual of LSISAS3008 many moons ago. But we had no immediate use for it in our offerings so it never went beyond that. I know other companies are using it, though. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/2] loop: Better discard support for block devices

2018-12-05 Thread Martin K. Petersen
le > lot of simplifying. I think it's fine to export these. The block device topology was explicitly designed to be stackable like this. -- Martin K. Petersen Oracle Linux Engineering

Re: DIF/DIX issue related to config CONFIG_SCSI_MQ_DEFAULT

2018-12-04 Thread Martin K. Petersen
Ming, > For DIX/DIF test, I think you need to pass 'dev_size_mb=XXX' instead of > 'virtual_gb'. Correct! -- Martin K. Petersen Oracle Linux Engineering

Re: DIF/DIX issue related to config CONFIG_SCSI_MQ_DEFAULT

2018-12-04 Thread Martin K. Petersen
lusively affects DIF-only setups (so primarily mpt3sas due to lack of DIX support). It's a regression caused by a commit that went in through block a few months ago. I'll send a patch... -- Martin K. Petersen Oracle Linux Engineering

Re: DIF/DIX issue related to config CONFIG_SCSI_MQ_DEFAULT

2018-12-03 Thread Martin K. Petersen
assing protection information to an HBA. > For now we may not support DIX. It seems to have issues. We wanted to > try 3008 card on our system, but it does not seem to support DIX 0-3. For some reason Broadcom have not upstreamed their DIX support. It's supposedly available in their outbox driver. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHv4 0/3] scsi timeout handling updates

2018-11-28 Thread Martin K. Petersen
ust the last patch? > > Today I run this test again and can't reproduce it any more. > > So maybe not a new issue, and it is just triggered in yesterday's > for-4.21/block, :-) Can you reproduce with yesterday's tree then? I'm obviously a bit concerned about merg

Re: [PATCH 09/30] scsi: kill off the legacy IO path

2018-11-08 Thread Martin K. Petersen
Sure, that's fine. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 09/30] scsi: kill off the legacy IO path

2018-11-06 Thread Martin K. Petersen
Jens, Looks good to me. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 08/30] scsi: provide mq_ops->busy() hook

2018-11-06 Thread Martin K. Petersen
Jens, > Only the SCSI legacy path provides a way to check if target is > currently busy, provide the same for the MQ path. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 00/11] Zoned block device support improvements

2018-10-24 Thread Martin K. Petersen
think it should be properly documented if there is a preferred way to order things... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 00/11] Zoned block device support improvements

2018-10-23 Thread Martin K. Petersen
he rest of the kernel appears to be either arbitrary ordering or favoring author SoB as the first tag. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHv6 0/3] Deprecate DAC960 driver

2018-10-19 Thread Martin K. Petersen
he time :-) Is this a qualified guess or have you actually tried? > Personally, I don't think there'll be many users around so I've just > added if for completions sake. Yeah, I agree it's less critical than mpt[23]sas. However, I'm sure we'll break someth

  1   2   3   4   >