All of lore.kernel.org
 help / color / mirror / Atom feed
From: michael.christie@oracle.com
To: Bodo Stroesser <bostroesser@gmail.com>,
	linux-scsi@vger.kernel.org, target-devel@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Matthew Wilcox <willy@infradead.org>
Subject: Re: [PATCH 0/2] scsi: target: tcmu: Replace IDR and radix_tree with XArray
Date: Thu, 25 Feb 2021 21:59:15 -0600	[thread overview]
Message-ID: <b36fee7f-6fdc-b5de-3a7b-4396e5f9aab1@oracle.com> (raw)
In-Reply-To: <20210224185335.13844-1-bostroesser@gmail.com>

On 2/24/21 12:53 PM, Bodo Stroesser wrote:
> This small series is based on Martin's for-next.
> 
> Future patches will need something like the - meanwhile removed -
> radix_tree_for_each_contig macro.
> Since general direction is to use xarray as replacement for
> radix_tree and IDR, instead of re-introducing or open coding the
> removed macro, with this series we switch over to xarray API.
> Based on xarray a future patch easily can implement an analog
> to radix_tree_for_each_contig.
> 
> Bodo Stroesser (2):
>   scsi: target: tcmu: Replace IDR by XArray
>   scsi: target: tcmu: Replace radix_tree with XArray
> 
>  drivers/target/target_core_user.c | 64 +++++++++++++++++++--------------------
>  1 file changed, 31 insertions(+), 33 deletions(-)
> 

Looks ok to me.

Reviewed-by: Mike Christie <michael.christie@oracle.com>

I think in a separate patch we need to change:

+		if (xa_store(&udev->data_blocks, dbi, page, GFP_KERNEL))
 			goto err_insert;

to GFP_NOIO. There were some users doing tcm loop  + tcmu and
were hitting issues when GFP_KERNEL lead to write backs back on
to the same tcmu device. We tried to change all the gfp flags but
we missed that one, because it was hidden in the radix tree's
xa_flags.

  parent reply	other threads:[~2021-02-26  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 18:53 [PATCH 0/2] scsi: target: tcmu: Replace IDR and radix_tree with XArray Bodo Stroesser
2021-02-24 18:53 ` [PATCH 1/2] scsi: target: tcmu: Replace IDR by XArray Bodo Stroesser
2021-02-24 18:53 ` [PATCH 2/2] scsi: target: tcmu: Replace radix_tree with XArray Bodo Stroesser
2021-02-26  3:59 ` michael.christie [this message]
2021-02-26  8:41   ` [PATCH 0/2] scsi: target: tcmu: Replace IDR and " Bodo Stroesser
2021-02-26 16:04     ` Mike Christie
2021-02-26 18:47       ` Bodo Stroesser
2021-03-10  2:34 ` Martin K. Petersen
2021-03-16  3:14 ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b36fee7f-6fdc-b5de-3a7b-4396e5f9aab1@oracle.com \
    --to=michael.christie@oracle.com \
    --cc=bostroesser@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=target-devel@vger.kernel.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.