Re: [PATCH V2 1/5] mmc: msm_sdcc: Fix possible circular locking dependency warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

On Wed, 2010-12-08 at 10:25 -0800, Daniel Walker wrote:
> On Wed, 2010-12-08 at 15:03 +0530, Sahitya Tummala wrote:
> > In the context of request processing thread, data mover lock is
> > acquired after the host lock.  In another context, in the completion
> > handler of data mover the locks are acquired in the reverse order,
> > resulting in possible circular lock dependency warning. Hence,
> > schedule a tasklet to process the dma completion so as to avoid
> > nested locks.
> > 
> 
> Can you just alter the location where the locks are taken ?
> 
> This lock,
> 
> spin_lock_irqsave(&host->lock, flags);
> 
> seems not fine grained at all .. That lock is just being held over very
> large sections of code which it doesn't seems like it needs to be. It
> doesn't appear to be protecting just the data structures.

Yes, it seems we are using the lock in this function not just for
required host data.

But to solve this circular locking issue, it looks like we don't need
host lock before enqueing the data mover request. I will analyze more
and confirm.

-- 
Thanks,
Sahitya.
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum.

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux