RE: [RESEND RFC PATCH v4 3/3] ufs: exynos: implement dbg_register_dump

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

 



> > +static void exynos_ufs_dbg_register_dump(struct ufs_hba *hba) {
> > +       struct exynos_ufs *ufs = ufshcd_get_variant(hba);
> > +       unsigned long flags;
> > +
> > +       spin_lock_irqsave(&ufs->dbg_lock, flags);
> > +       if (ufs->under_dump == 0)
> If you would use test_and_set_bit it would save you both under_dump and
> dbg_lock ?


Great. Got it.

Thanks.
Kiwoong Kim




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux