lkml.org 
[lkml]   [2023]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 2/2] pipe: use __pipe_{lock,unlock} instead of spinlock
From
Date

On 2023/8/14 下午4:47, David Howells wrote:
> Hongchen Zhang <zhanghongchen@loongson.cn> wrote:
>
>> - spin_lock_irq(&pipe->rd_wait.lock);
>> + __pipe_lock(pipe);
>
> This mustn't sleep. post_one_notification() needs to be callable with a
> spinlock held.
Hi David,
Where is the usage scenario for post_one_notification, or what usage
scenarios will it be used in the future?
IMO, it is not advisable for a debugging tool to affect the performance
of an syscall.
>
> David
>

--
Best Regards
Hongchen Zhang

\
 
 \ /
  Last update: 2023-08-15 08:04    [W:0.081 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site