* [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage
@ 2024-02-24 13:52 chengming.zhou
2024-02-26 3:02 ` Chengming Zhou
0 siblings, 1 reply; 5+ messages in thread
From: chengming.zhou @ 2024-02-24 13:52 UTC (permalink / raw)
To: rui.silva, gregkh
Cc: linux-usb, linux-kernel, linux-mm, vbabka, roman.gushchin,
Xiongwei.Song, chengming.zhou, Chengming Zhou
From: Chengming Zhou <zhouchengming@bytedance.com>
The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove
its usage so we can delete it from slab. No functional change.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
---
drivers/usb/isp1760/isp1760-hcd.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
index 76862ba40f35..0e5e4cb74c87 100644
--- a/drivers/usb/isp1760/isp1760-hcd.c
+++ b/drivers/usb/isp1760/isp1760-hcd.c
@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {
int __init isp1760_init_kmem_once(void)
{
urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem",
- sizeof(struct urb_listitem), 0, SLAB_TEMPORARY |
- SLAB_MEM_SPREAD, NULL);
+ sizeof(struct urb_listitem), 0, SLAB_TEMPORARY, NULL);
if (!urb_listitem_cachep)
return -ENOMEM;
qtd_cachep = kmem_cache_create("isp1760_qtd",
- sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY |
- SLAB_MEM_SPREAD, NULL);
+ sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY, NULL);
if (!qtd_cachep)
goto destroy_urb_listitem;
qh_cachep = kmem_cache_create("isp1760_qh", sizeof(struct isp1760_qh),
- 0, SLAB_TEMPORARY | SLAB_MEM_SPREAD, NULL);
+ 0, SLAB_TEMPORARY, NULL);
if (!qh_cachep)
goto destroy_qtd;
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage
2024-02-24 13:52 [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage chengming.zhou
@ 2024-02-26 3:02 ` Chengming Zhou
2024-02-26 18:14 ` Rui Miguel Silva
2024-03-05 13:16 ` Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Chengming Zhou @ 2024-02-26 3:02 UTC (permalink / raw)
To: rui.silva, gregkh
Cc: linux-usb, linux-kernel, vbabka, roman.gushchin, Xiongwei.Song
On 2024/2/24 21:52, chengming.zhou@linux.dev wrote:
> From: Chengming Zhou <zhouchengming@bytedance.com>
>
> The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove
> its usage so we can delete it from slab. No functional change.
Update changelog to make it clearer:
The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was
removed as of v6.8-rc1, so it became a dead flag since the commit
16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the
series[1] went on to mark it obsolete to avoid confusion for users.
Here we can just remove all its users, which has no functional change.
[1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/
Thanks!
>
> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
> ---
> drivers/usb/isp1760/isp1760-hcd.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
> index 76862ba40f35..0e5e4cb74c87 100644
> --- a/drivers/usb/isp1760/isp1760-hcd.c
> +++ b/drivers/usb/isp1760/isp1760-hcd.c
> @@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {
> int __init isp1760_init_kmem_once(void)
> {
> urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem",
> - sizeof(struct urb_listitem), 0, SLAB_TEMPORARY |
> - SLAB_MEM_SPREAD, NULL);
> + sizeof(struct urb_listitem), 0, SLAB_TEMPORARY, NULL);
>
> if (!urb_listitem_cachep)
> return -ENOMEM;
>
> qtd_cachep = kmem_cache_create("isp1760_qtd",
> - sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY |
> - SLAB_MEM_SPREAD, NULL);
> + sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY, NULL);
>
> if (!qtd_cachep)
> goto destroy_urb_listitem;
>
> qh_cachep = kmem_cache_create("isp1760_qh", sizeof(struct isp1760_qh),
> - 0, SLAB_TEMPORARY | SLAB_MEM_SPREAD, NULL);
> + 0, SLAB_TEMPORARY, NULL);
>
> if (!qh_cachep)
> goto destroy_qtd;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage
2024-02-26 3:02 ` Chengming Zhou
@ 2024-02-26 18:14 ` Rui Miguel Silva
2024-03-05 13:16 ` Greg KH
1 sibling, 0 replies; 5+ messages in thread
From: Rui Miguel Silva @ 2024-02-26 18:14 UTC (permalink / raw)
To: Chengming Zhou, gregkh
Cc: linux-usb, linux-kernel, vbabka, roman.gushchin, Xiongwei.Song
Hey Zhou,
many thanks for the patch.
Chengming Zhou <chengming.zhou@linux.dev> writes:
> On 2024/2/24 21:52, chengming.zhou@linux.dev wrote:
>> From: Chengming Zhou <zhouchengming@bytedance.com>
>>
>> The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove
>> its usage so we can delete it from slab. No functional change.
>
> Update changelog to make it clearer:
>
> The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was
> removed as of v6.8-rc1, so it became a dead flag since the commit
> 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the
> series[1] went on to mark it obsolete to avoid confusion for users.
> Here we can just remove all its users, which has no functional change.
>
> [1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/
With this changelog, you can add my tag:
Acked-by: Rui Miguel Silva <rui.silva@linaro.org>
Cheers,
Rui
>
> Thanks!
>
>>
>> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
>> ---
>> drivers/usb/isp1760/isp1760-hcd.c | 8 +++-----
>> 1 file changed, 3 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
>> index 76862ba40f35..0e5e4cb74c87 100644
>> --- a/drivers/usb/isp1760/isp1760-hcd.c
>> +++ b/drivers/usb/isp1760/isp1760-hcd.c
>> @@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {
>> int __init isp1760_init_kmem_once(void)
>> {
>> urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem",
>> - sizeof(struct urb_listitem), 0, SLAB_TEMPORARY |
>> - SLAB_MEM_SPREAD, NULL);
>> + sizeof(struct urb_listitem), 0, SLAB_TEMPORARY, NULL);
>>
>> if (!urb_listitem_cachep)
>> return -ENOMEM;
>>
>> qtd_cachep = kmem_cache_create("isp1760_qtd",
>> - sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY |
>> - SLAB_MEM_SPREAD, NULL);
>> + sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY, NULL);
>>
>> if (!qtd_cachep)
>> goto destroy_urb_listitem;
>>
>> qh_cachep = kmem_cache_create("isp1760_qh", sizeof(struct isp1760_qh),
>> - 0, SLAB_TEMPORARY | SLAB_MEM_SPREAD, NULL);
>> + 0, SLAB_TEMPORARY, NULL);
>>
>> if (!qh_cachep)
>> goto destroy_qtd;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage
2024-02-26 3:02 ` Chengming Zhou
2024-02-26 18:14 ` Rui Miguel Silva
@ 2024-03-05 13:16 ` Greg KH
2024-03-05 13:24 ` [PATCH v2] " Chengming Zhou
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2024-03-05 13:16 UTC (permalink / raw)
To: Chengming Zhou
Cc: rui.silva, linux-usb, linux-kernel, vbabka, roman.gushchin,
Xiongwei.Song
On Mon, Feb 26, 2024 at 11:02:24AM +0800, Chengming Zhou wrote:
> On 2024/2/24 21:52, chengming.zhou@linux.dev wrote:
> > From: Chengming Zhou <zhouchengming@bytedance.com>
> >
> > The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove
> > its usage so we can delete it from slab. No functional change.
>
> Update changelog to make it clearer:
>
> The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was
> removed as of v6.8-rc1, so it became a dead flag since the commit
> 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the
> series[1] went on to mark it obsolete to avoid confusion for users.
> Here we can just remove all its users, which has no functional change.
Please submit a version 2 with this updated changelog.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] usb: isp1760: remove SLAB_MEM_SPREAD flag usage
2024-03-05 13:16 ` Greg KH
@ 2024-03-05 13:24 ` Chengming Zhou
0 siblings, 0 replies; 5+ messages in thread
From: Chengming Zhou @ 2024-03-05 13:24 UTC (permalink / raw)
To: gregkh; +Cc: rui.silva, linux-usb, linux-kernel, Chengming Zhou
From: Chengming Zhou <zhouchengming@bytedance.com>
The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was
removed as of v6.8-rc1, so it became a dead flag since the commit
16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the
series[1] went on to mark it obsolete explicitly to avoid confusion
for users. Here we can just remove all its users, which has no any
functional change.
[1] https://lore.kernel.org/all/20240223-slab-cleanup-flags-v2-1-02f1753e8303@suse.cz/
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
---
drivers/usb/isp1760/isp1760-hcd.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
index 76862ba40f35..0e5e4cb74c87 100644
--- a/drivers/usb/isp1760/isp1760-hcd.c
+++ b/drivers/usb/isp1760/isp1760-hcd.c
@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {
int __init isp1760_init_kmem_once(void)
{
urb_listitem_cachep = kmem_cache_create("isp1760_urb_listitem",
- sizeof(struct urb_listitem), 0, SLAB_TEMPORARY |
- SLAB_MEM_SPREAD, NULL);
+ sizeof(struct urb_listitem), 0, SLAB_TEMPORARY, NULL);
if (!urb_listitem_cachep)
return -ENOMEM;
qtd_cachep = kmem_cache_create("isp1760_qtd",
- sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY |
- SLAB_MEM_SPREAD, NULL);
+ sizeof(struct isp1760_qtd), 0, SLAB_TEMPORARY, NULL);
if (!qtd_cachep)
goto destroy_urb_listitem;
qh_cachep = kmem_cache_create("isp1760_qh", sizeof(struct isp1760_qh),
- 0, SLAB_TEMPORARY | SLAB_MEM_SPREAD, NULL);
+ 0, SLAB_TEMPORARY, NULL);
if (!qh_cachep)
goto destroy_qtd;
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-05 13:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-24 13:52 [PATCH] usb: isp1760: remove SLAB_MEM_SPREAD flag usage chengming.zhou
2024-02-26 3:02 ` Chengming Zhou
2024-02-26 18:14 ` Rui Miguel Silva
2024-03-05 13:16 ` Greg KH
2024-03-05 13:24 ` [PATCH v2] " Chengming Zhou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).