lkml.org 
[lkml]   [2022]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: linux-next: manual merge of the dmaengine tree with Linus' tree
From

On 5/18/2022 3:40 PM, Stephen Rothwell wrote:
> Hi Dave,
>
> On Wed, 18 May 2022 10:20:59 -0700 Dave Jiang <dave.jiang@intel.com> wrote:
>> The lock needs to go around both functions, we can move it outside the if().
>>
>> + mutex_lock(&wq->wq_lock);
>> if (wq->state == IDXD_WQ_ENABLED) {
>> idxd_wq_disable_cleanup(wq);
>> - idxd_wq_device_reset_cleanup(wq);
>> wq->state = IDXD_WQ_DISABLED;
>> }
>> + idxd_wq_device_reset_cleanup(wq);
>> + mutex_unlock(&wq->wq_lock);
> Thanks for checking. I have made that change to my merge resolution.
Thank you!

\
 
 \ /
  Last update: 2022-05-19 00:44    [W:0.042 / U:1.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site