Re: [PATCH v11 0/8] blk-mq: Implement runtime power management

2018-09-26 Thread Martin K. Petersen
he power management code for the legacy >> block layer. Please consider this patch series for the upstream kernel. > > Thanks Bart, applied for 4.20. I have made a note to back out the ufs change for 4.20. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v10 2/8] block, scsi: Change the preempt-only flag into a counter

2018-09-25 Thread Martin K. Petersen
turn early if it is called for a quiesced queue. The SCSI pieces look OK to me... Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 3/3] nvme: use blk API to remap ref tags for IOs with metadata

2018-07-25 Thread Martin K. Petersen
Max, > Also moved the logic of the remapping to the nvme core driver instead > of implementing it in the nvme pci driver. This way all the other nvme > transport drivers will benefit from it (in case they'll implement metadata > support). Reviewed-by: Martin K. Petersen

Re: [PATCH v4 2/3] block: move dif_prepare/dif_complete functions to block layer

2018-07-25 Thread Martin K. Petersen
vary between > integrity types. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 1/3] block: move ref_tag calculation func to the block layer

2018-07-25 Thread Martin K. Petersen
Max, > Currently this function is implemented in the scsi layer, but it's > actual place should be the block layer since T10-PI is a general > data integrity feature that is used in the nvme protocol as well. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Ora

Re: [PATCH 1/2] block: move dif_prepare/dif_complete functions to block layer

2018-07-23 Thread Martin K. Petersen
port that yet). We should use the blk_integrity profile interval instead of assuming sector size. And wrt. Keith's comment: The tuple_size should be the one from the integrity profile as well, not sizeof(struct t10_pi_tuple). -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] block: Fix transfer when chuck sectors exceeds max

2018-06-26 Thread Martin K. Petersen
Keith, > A device may have boundary restrictions where the number of sectors > between boundaries exceeds its max transfer size. In this case, we need > to cap the max size to the smaller of the two limits. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/3] Fix blk_mq_end_request() and blk_end_request() for WRITE SAME

2018-06-26 Thread Martin K. Petersen
papering over a more fundamental issue. Can you elaborate a bit on why the existing code fails with dm in the mix? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-23 Thread Martin K. Petersen
functionality out of the subsystem to accommodate ioctl handling. I'm traveling today so I probably won't get a chance to look closely until tomorrow morning. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI

2018-05-22 Thread Martin K. Petersen
ctl.c which is linked with CONFIG_IDE >> by way of CONFIG_BLK_SCSI_REQUEST. > > Please keep the code where it is and just depend on SCSI on the legacy > ide driver. No need to do gymnastics just for a legacy case. Yup, I agree. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/2] xfs: add 'discard_sync' mount flag

2018-05-01 Thread Martin K. Petersen
AD= 2,/* read */ > WBT_KSWAPD = 4,/* write, from kswapd */ > + WBT_TRIM= 8, The term TRIM does not apply to NVMe, nor SCSI. Please call it WBT_DISCARD. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] target: Fix Fortify_panic kernel exception

2018-04-20 Thread Martin K. Petersen
stead to find whether or not a 0 exists > instead of using memcmp. This way you dont have to worry about buffer > overflow which is the reason for the fortify_panic. Clarified the commit description a bit and applied the patch 4.17/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: Change device block count from userspace?

2018-04-19 Thread Martin K. Petersen
unt? I'm afraid not. -- Martin K. Petersen Oracle Linux Engineering

Re: [LSF/MM] schedule suggestion

2018-04-19 Thread Martin K. Petersen
'd love this as well. Based on feedback last year we explicitly added a third day to LSF/MM to facilitate hack time and project meetings. As usual the schedule is fluid and will be adjusted on the fly. Depending on track, I am hoping we'll be done with the scheduled topics either at the end of T

Re: [PATCH] target: fix crash with iscsi target and dvd

2018-04-18 Thread Martin K. Petersen
Ming, > When the current page can't be added to bio, one new bio should be > created for adding this page again, instead of ignoring this page. > > This patch fixes kernel crash with iscsi target and dvd, as reported > by Wakko. I queued this up in 4.17/scsi-fixes. -- Mar

Re: [PATCH 02/12] storsvc: don't set a bounce limit

2018-04-18 Thread Martin K. Petersen
Christoph, > The default already is to never bounce, so the call is a no-op. Applied to 4.18/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 01/12] iscsi_tcp: don't set a bounce limit

2018-04-18 Thread Martin K. Petersen
Christoph, > The default already is to never bounce, so the call is a no-op. Applied to 4.18/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] target: fix crash with iscsi target and dvd

2018-04-18 Thread Martin K. Petersen
Christoph, > Btw, seems like someone needs to volunteer for putting together a pull > request with target fixes for Linus - I haven't heard from Nic for a > while, and we've got quite a few fixes out on the list. Still happy to take things through SCSI if Nic doesn't materialize. --

Re: Change device block count from userspace?

2018-04-17 Thread Martin K. Petersen
Manuel, > I have a SATA SSD which suddenly reports its size as 2.2TB, 0x > block count: "Suddenly" as in out of the blue? Or after a drive firmware update? Or a kernel ditto? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-13 Thread Martin K. Petersen
X supposed to work for SATA drives behind an mpt3sas controller? -- Martin K. Petersen Oracle Linux Engineering

Re: sr: get/drop reference to device in revalidate and check_events

2018-04-12 Thread Martin K. Petersen
Jens, > We can't just use scsi_cd() to get the scsi_cd structure, we have > to grab a live reference to the device. For both callbacks, we're > not inside an open where we already hold a reference to the device. Applied to 4.17/scsi-fixes, thanks! -- Martin K. Petersen Ora

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-12 Thread Martin K. Petersen
Jack, > + pr_err_ratelimited("%s: ref tag error at > location %llu (rcvd %u)\n", I'm a bit concerned about dropping records of potential data loss. Also, what are you doing that compels all these to be logged? This should be a very rare occurrenc

Re: [RFC PATCH 0/2] use larger max_request_size for virtio_blk

2018-04-05 Thread Martin K. Petersen
bandwidth. It sets an upper bound for filesystem requests only. Regardless of the capabilities of the block device driver and underlying hardware. You can override the limit on a per-device basis via max_sectors_kb in sysfs. People generally do it via a udev rule. -- Martin K. Petersen

Re: [PATCH V5 1/5] scsi: hpsa: fix selection of reply queue

2018-03-19 Thread Martin K. Petersen
combined fixes+queue to linux-next to get more zeroday coverage. However, most of the time linux-next is one 4.x+1 material only. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 01/11] PCI/P2PDMA: Support peer-to-peer memory

2018-03-14 Thread Martin K. Petersen
wnwards. It has proven quite hard to reconcile token-based and EXTENDED COPY semantics along with the desire to support stacking. But from an application/filesystem perspective everything looks the same regardless of the intricacies of the device. Nothing is preventing us from supporting other protocols... -

Re: [PATCH V5 0/5] SCSI: fix selection of reply(hw) queue

2018-03-14 Thread Martin K. Petersen
lease run checkpatch next time! Applied to 4.16/scsi-fixes. Thank you. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] dm mpath: fix passing integrity data

2018-03-14 Thread Martin K. Petersen
Steffen, > After v4.12 commit e2460f2a4bc7 ("dm: mark targets that pass integrity > data"), dm-multipath, e.g. on DIF+DIX SCSI disk paths, does not support > block integrity any more. So add it to the whitelist. Ugh. Reviewed-by: Martin K. Petersen <martin.peter...@ora

Re: [PATCH] device_handler: remove VLAs

2018-03-12 Thread Martin K. Petersen
his patch replaces these with fixed-sized arrays using > MAX_COMMAND_SIZE, so that the array size can be determined at compile > time. Applied to 4.17/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V3 1/8] scsi: hpsa: fix selection of reply queue

2018-03-06 Thread Martin K. Petersen
Ming, > Please consider 2/8 too since it is still a fix. I still need the driver maintainer to ack the change. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V3 1/8] scsi: hpsa: fix selection of reply queue

2018-03-06 Thread Martin K. Petersen
e done with just patch 1/8 and none of the subsequent changes in place. Just to make sure we're testing the right thing. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V3 1/8] scsi: hpsa: fix selection of reply queue

2018-03-06 Thread Martin K. Petersen
Hi Ming, > Given both Don and Laurence have verified that patch 1 and patch 2 > does fix IO hang, could you consider to merge the two first? I'm not going to merge the MR patch until Kashyap acks it. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 11/11] block: Move the queue_flag_*() functions from a public into a private header file

2018-03-02 Thread Martin K. Petersen
Bart, > This patch helps to avoid that new code gets introduced in block drivers > that manipulates queue flags without holding the queue lock when that > lock should be held. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 10/11] block: Complain if queue_flag_(set|clear)_unlocked() is abused

2018-03-02 Thread Martin K. Petersen
Bart, > Since it is not safe to use queue_flag_(set|clear)_unlocked() without > holding the queue lock after the sysfs entries for a queue have been > created, complain if this happens. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen

Re: [PATCH 08/11] target/tcm_loop: Use blk_queue_flag_set()

2018-03-02 Thread Martin K. Petersen
Bart, > Use blk_queue_flag_set() instead of open-coding this function. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 07/11] iscsi: Use blk_queue_flag_set()

2018-03-02 Thread Martin K. Petersen
Bart, > Use blk_queue_flag_set() instead of open-coding this function. Acked-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 06/11] bcache: Use the blk_queue_flag_{set,clear}() functions

2018-03-02 Thread Martin K. Petersen
Bart, > Use the blk_queue_flag_{set,clear}() functions instead of open-coding > these. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 04/11] block: Protect queue flag changes with the queue lock

2018-03-02 Thread Martin K. Petersen
Bart, > Since the queue flags may be changed concurrently from multiple > contexts after a queue becomes visible in sysfs, make these changes > safe by protecting these with the queue lock. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen

Re: [PATCH 05/11] mtip32xx: Use the blk_queue_flag_*() functions

2018-03-02 Thread Martin K. Petersen
Bart, > Use the blk_queue_flag_*() functions instead of open-coding these. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 03/11] block: Introduce blk_queue_flag_{set,clear,test_and_{set,clear}}()

2018-03-02 Thread Martin K. Petersen
by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 02/11] block: Use the queue_flag_*() functions instead of open-coding these

2018-03-02 Thread Martin K. Petersen
Bart, > Except for changing the atomic queue flag manipulations that are > protected by the queue lock into non-atomic manipulations, this > patch does not change any functionality. Looks fine. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Peter

Re: [PATCH 01/11] block: Reorder the queue flag manipulaton function definitions

2018-03-02 Thread Martin K. Petersen
Bart, s/manipulaton/manipulation/ in Subject. Otherwise OK. > Move the definition of queue_flag_clear_unlocked() up and move the > definition of queue_in_flight() down such that all queue flag > manipulation function definitions become contiguous. Reviewed-by: Martin K. Petersen <

Re: [PATCH v2] block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into

2018-02-21 Thread Martin K. Petersen
r > causes the compiler to complain about a SECTOR_SIZE > redefinition. Looks good. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V2] blk-mq: introduce BLK_STS_DEV_RESOURCE

2018-01-23 Thread Martin K. Petersen
BLK_STS_SOURCE, for example, when memory allocation, DMA Mapping or other ^^^^^^ -- Martin K. Petersen Oracle Linux Engineering

Re: how to enlarge value of max_sectors_kb

2018-01-16 Thread Martin K. Petersen
te the hardware constraints. You need to figure out why your controller is limiting the transfer size. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] block: Fix __bio_integrity_endio() documentation

2018-01-16 Thread Martin K. Petersen
Bart, > Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio") > Signed-off-by: Bart Van Assche <bart.vanass...@wdc.com> Looks fine. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V9 0/7] blk-mq support for ZBC disks

2018-01-08 Thread Martin K. Petersen
Jens, > Completely up to you - I already have 1-5, I can add 6/7 as well, or > just can do it in your tree. Let me know what you prefer. Started my 4.16/scsi-fixes branch early based on your tree. I queued these two up. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 3/3] scsi-mq-debugfs: Show more information

2018-01-08 Thread Martin K. Petersen
Bart, > Show the request result, request timeout and SCSI command flags. > This information is very helpful when trying to figure out why a > queue got stuck. An example of the information that is exported > through debugfs: Applied to 4.16/scsi-fixes, thanks. -- Martin

Re: [PATCH V9 0/7] blk-mq support for ZBC disks

2018-01-08 Thread Martin K. Petersen
Jens, > This looks OK for me for 4.16. I can grab all of them, or I can leave > the last two for Martin to apply if he prefers that, though that will > add a block tree dependency for SCSI. I already have a block dependency for 4.16. But it doesn't matter much. -- Martin K.

Re: [PATCH v2 1/3] scsi: Fix a scsi_show_rq() NULL pointer dereference

2017-12-11 Thread Martin K. Petersen
and buffer runtime, also the > recent use-after-free report[1] in scsi_show_rq() can be fixed too. I'm still mulling over the pros and cons of this one for 4.16+... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 1/3] scsi: Fix a scsi_show_rq() NULL pointer dereference

2017-12-11 Thread Martin K. Petersen
. Note: even > with these changes scsi_show_rq() can trigger a use-after-free but > that's a lesser evil than e.g. suppressing debug information for > T10-PI commands completely. This patch fixes the following oops: Applied to 4.15/scsi-fixes. Thanks, Bart. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 1/3] scsi: Fix a scsi_show_rq() NULL pointer dereference

2017-12-07 Thread Martin K. Petersen
en sent). Last I looked at this it was not entirely trivial given how we tag things on to the end. But that really is my preferred fix. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] SCSI: run queue if SCSI device queue isn't ready and queue is idle

2017-12-07 Thread Martin K. Petersen
Ming, > Jens, Martin, would any of you mind making this patch in V4.15? Since > it fixes real use cases and this way is exact what we do before > 0df21c86bdbf("scsi: implement .get_budget and .put_budget for blk-mq"). Applied to 4.15/scsi-fixes, thank you! -- Martin K. P

Re: [PATCH 1/2] scsi-mq: Only show the CDB if available

2017-12-05 Thread Martin K. Petersen
Hi Ming, > Please cook a patch for fixing the crash issue only, since we need > to backport the fix to stable kernel. I thought you were going to submit a V5 that addressed James' concerns? -- Martin K. Petersen Oracle Linux Engineering

Re: [RFC] md: make queue limits depending on limits of RAID members

2017-11-30 Thread Martin K. Petersen
evant issues. That's why the stacking works the way it does. For your particular example, I'd say that if your device reports an io_min of 64KB, then it's a user error to create an MD device with a stripe chunk of 32KB. mdadm should discourage creating such a configuration. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] nbd: set discard granularity properly

2017-11-30 Thread Martin K. Petersen
em with only reporting granularity when the feature is actually enabled... Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V8 6/7] sd_zbc: Initialize device request queue zoned data

2017-11-20 Thread Martin K. Petersen
the bitmaps > whenever the disk capacity (number of zones) changes. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 6/7] block: create 'slaves' and 'holders' entries for hidden gendisks

2017-11-09 Thread Martin K. Petersen
Christoph, > From: Hannes Reinecke <h...@suse.de> > > When creating nvme multipath devices we should populate the 'slaves' > and 'holders' directorys properly to aid userspace topology detection. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin

Re: [PATCH 7/7] nvme: create 'slaves' and 'holders' entries for hidden controllers

2017-11-09 Thread Martin K. Petersen
Christoph, > From: Hannes Reinecke <h...@suse.de> > > When creating nvme multipath devices we should populate the 'slaves' > and 'holders' directorys properly to aid userspace topology detection. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin

Re: [PATCH 5/7] nvme: also expose the namespace identification sysfs files for mpath nodes

2017-11-09 Thread Martin K. Petersen
Christoph, > We do this by adding a helper that returns the ns_head for a device > that can belong to either the per-controller or per-subsystem block > device nodes, and otherwise reuse all the existing code. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Mar

Re: [PATCH 4/7] nvme: implement multipath access to nvme subsystems

2017-11-09 Thread Martin K. Petersen
rovided by NVMe. > > The multipath device will go away once all paths to it disappear, any > delay to keep it alive needs to be implemented at the controller > level. Beautiful! Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/7] nvme: track shared namespaces

2017-11-09 Thread Martin K. Petersen
y SRCU, which requires freeing the nvme_ns > structure through call_srcu. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/7] nvme: introduce a nvme_ns_ids structure

2017-11-09 Thread Martin K. Petersen
Christoph, > This allows us to manage the various uniqueue namespace identifiers > together instead needing various variables and arguments. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/7] nvme: track subsystems

2017-11-09 Thread Martin K. Petersen
controllers. > > Includes code originally from Hannes Reinecke to expose the subsystems > in sysfs. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V7 7/8] scsi: sd: Remove zone write locking

2017-11-08 Thread Martin K. Petersen
Damien, > The block layer now handles zone write locking. Looks OK. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V7 6/8] scsi: sd_zbc: Initialize device request queue zoned data

2017-11-08 Thread Martin K. Petersen
Damien, > wait for the disk capacity and number of zones to stabilize on the > second revalidation pass to allocate and initialize the bitmaps. Stabilize how? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V7 5/8] block: deadline-iosched: Introduce zone locking support

2017-11-08 Thread Martin K. Petersen
zoned block device, or if zoned block device > support is disabled, this patch does not modify deadline behavior. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V7 4/8] block: deadline-iosched: Introduce dispatch helpers

2017-11-08 Thread Martin K. Petersen
at it, also remove the unnecessary forward declaration of the > function deadline_move_request(). Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V7 2/8] blokc: mq-deadline: Introduce dispatch helpers

2017-11-08 Thread Martin K. Petersen
Damien, > Avoid directly referencing the next_rq and fifo_list arrays using the > helper functions deadline_next_request() and deadline_fifo_request() > to facilitate changes in the dispatch request selection in > __dd_dispatch_request() for zoned block devices. Reviewed-by: Martin

Re: [PATCH] SCSI: don't get target/host busy_count in scsi_mq_get_budget()

2017-11-06 Thread Martin K. Petersen
OK that the patch goes through a different tree. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 6/8] scsi/ipr: Use sgl_alloc_order() and sgl_free_order()

2017-11-06 Thread Martin K. Petersen
Bart, > Use the sgl_alloc_order() and sgl_free_order() functions instead of > open coding these functions. I'll merge patches 6-8 once the plumbing goes in. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 9/9] bsg: split handling of SCSI CDBs vs transport requeues

2017-10-23 Thread Martin K. Petersen
Benjamin, >> Not sure it's worth it especially now that Martin has merged the patch. > > He did? I only saw a mail that he picked patches 2-5. So all the bsg > changes are still open I think. Yes, I expected the bsg bits to go through Jens' tree. -- Martin K. Petersen

Re: [PATCH v3 2/2] block: cope with WRITE ZEROES failing in blkdev_issue_zeroout()

2017-10-18 Thread Martin K. Petersen
OP_WRITE_ZEROES is implemented in terms of WRITE > SAME, blkdev_issue_zeroout() may fail with -EREMOTEIO: Other than that patch looks good. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v3 1/2] block: factor out __blkdev_issue_zero_pages()

2017-10-18 Thread Martin K. Petersen
Ilya, > blkdev_issue_zeroout() will use this in !BLKDEV_ZERO_NOFALLBACK case. Looks good to me. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v9 09/10] block, scsi: Make SCSI quiesce and resume work reliably

2017-10-16 Thread Martin K. Petersen
o me. Acked-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v9 07/10] ide, scsi: Tell the block layer at request allocation time about preempt requests

2017-10-16 Thread Martin K. Petersen
Bart, > Convert blk_get_request(q, op, __GFP_RECLAIM) into > blk_get_request_flags(q, op, BLK_MQ_PREEMPT). This patch does not > change any functionality. Acked-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [RFC] bsg-lib interface cleanup

2017-10-16 Thread Martin K. Petersen
equests > we get. The current code will happily execute scsi commands against > bsg-lib queues, and transport pass through against scsi nodes, without > any indication to the driver that we are doing the wrong thing. I applied patches 2-5 to 4.15/scsi-queue. -- Martin K. Peter

Re: [PATCH] block: cope with WRITE SAME failing in blkdev_issue_zeroout()

2017-09-20 Thread Martin K. Petersen
ks fine to me. We explicitly return -EREMOTEIO when the device reports ILLEGAL REQUEST. But I agree that we should fall back to manually zeroing for any error. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/2] scsi_transport_fc: fix NULL pointer dereference in fc_bsg_job_timeout

2017-09-14 Thread Martin K. Petersen
Christoph, > bsg-lib now embeddeds the job structure into the request, and > req->special can't be used anymore. Applied to 4.14/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] Revert "scsi: default to scsi-mq"

2017-08-14 Thread Martin K. Petersen
> we'll plan to try again with these fixes. > > This reverts commit 5c279bd9e40624f4ab6e688671026d6005b066fa. Applied to 4.13/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: two small integrity cleanups

2017-08-09 Thread Martin K. Petersen
Christoph, > Found these while coming up with the fixes just sent. Also OK. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: integrity regression fixes for 4.13-rc

2017-08-09 Thread Martin K. Petersen
back to the status quo. > > The second one makes sure that we only verify the DIF checksums on the > lowest layer where we attach the integrity information. These look OK to me. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bio-integrity: revert "stop abusing bi_end_io"

2017-08-07 Thread Martin K. Petersen
s from one address space to the other. In addition, some HBA hardware allows us to program the PI engine with the seed value. So the submitter value to LBA conversion can be done on the fly in hardware. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bio-integrity: revert "stop abusing bi_end_io"

2017-08-05 Thread Martin K. Petersen
driver or HBA firmware. So the verification is designed to be done by the top level entity that attaches the protection information to the bio. In this case bio_integrity_prep(). -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bio-integrity: revert "stop abusing bi_end_io"

2017-08-05 Thread Martin K. Petersen
hat approach to reverting Christoph's commit. -- Martin K. Petersen Oracle Linux Engineering

Re: [RFC PATCH] bio-integrity: Fix regression if profile verify_fn is NULL

2017-08-02 Thread Martin K. Petersen
the endio function). Anyway. So I think that the BLK_INTEGRITY_VERIFY logic needs to be carried over to __bio_integrity_endio()... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] sd: add support for TCG OPAL self encrypting disks

2017-06-27 Thread Martin K. Petersen
conflicts in linux-next for this merge window. Acked-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 9/9] nvme: add support for streams and directives

2017-06-26 Thread Martin K. Petersen
ome overhead of >just enabling it when never used Yeah, based on my experiments we'll need to drive this as an opt-in feature for now. Short term the module option is OK. Once more devices start materializing we probably need a white/blacklist/quirk scheme. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] sd: add support for TCG OPAL self encrypting disks

2017-06-26 Thread Martin K. Petersen
Christoph, > ping? Looks good to me. I'll queue it up for 4.13 as soon as Linus has pulled in the ata bits. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHSET v9] Add support for write life time hints

2017-06-20 Thread Martin K. Petersen
rep-wielding streams police noticed several occurrences of the string "stream" in patches 1-3 and 5. Please fix. Otherwise OK as a baseline. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 2/2] block: stop using bio_data() in blk_write_same_mergeable

2017-06-20 Thread Martin K. Petersen
Christoph, > While the Write Same page currently always is in low-level it is just > as easy and safer to just compare the page and offset directly. Also fine. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/2] block: remove the unused bio_to_phys macro

2017-06-20 Thread Martin K. Petersen
Christoph, > Signed-off-by: Christoph Hellwig <h...@lst.de> That's fine. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 06/12] block: add helpers for setting/checking write hint validity

2017-06-16 Thread Martin K. Petersen
It loses the WRITE moniker which I'm not so keen on. But I'm not sure how we'd define read lifetime... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 05/12] fs: add fcntl() interface for setting/getting write life time hints

2017-06-16 Thread Martin K. Petersen
more, maybe these should be F_{GET,SET}_HINT and then the individual flags can be WRITE_LIFETIME_FOOBAR? Otherwise OK with the fnctl approach. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 01/12] block: add support for carrying stream information in a bio

2017-06-16 Thread Martin K. Petersen
Jens, > No functional changes in this patch, we just add four flags > that will be used to denote a stream type, and ensure that we > don't merge across different stream types. More stream terminology... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 02/12] blk-mq: expose stream write stats through debugfs

2017-06-16 Thread Martin K. Petersen
o q->stream_writes[] if they handle a stream. s/stream/write_lifetime_bucket/ or something like that. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHSET v2] Add support for write life time hints

2017-06-14 Thread Martin K. Petersen
the existing flags that's perfect (I lost count after your op/flag shuffle). -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHSET v2] Add support for write life time hints

2017-06-14 Thread Martin K. Petersen
h space. Sure, that's fine with me. But let's call them bi_hints or something. I have a couple that I would like to add that are I/O direction agnostic. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHSET v2] Add support for write life time hints

2017-06-14 Thread Martin K. Petersen
flags in block. That does not preclude using Streams Directives to implement them in the NVMe NAND flash case. But it does not cause conflicts with the use cases that need "proper" stream IDs for QoS or colocation avoidance purposes in SCSI. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 6/6] sd: add support for TCG OPAL self encrypting disks

2017-06-13 Thread Martin K. Petersen
for the SAS HBA vendors to accommodate for SATA passthrough. But we can cross that bridge when we get to it. For libata I'm fine with keying off a supports_opal:1 flag in scsi_device or something to that effect. I'd just like to reduce the risk of introducing more RSOC regressions. -- Martin K. Pe

Re: [PATCH] block: Dedicated error code fixups

2017-06-13 Thread Martin K. Petersen
Bart, > This patch fixes two sparse warnings introduced by the "dedicated > error codes for the block layer V3" patch series. These changes > have not been tested. LGTM. -- Martin K. Petersen Oracle Linux Engineering

  1   2   3   >