Re: BUG: scheduling while atomic 3.10.7 in ZRAM Swap

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

 



On Sun, Aug 18, 2013 at 11:44 PM, Minchan Kim <minchan@xxxxxxxxxx> wrote:
> Hello,
>
> On Mon, Aug 19, 2013 at 12:13:02PM +0800, Michael wang wrote:
>> Hi, Mitch
>>
>> On 08/17/2013 10:01 PM, Mitch Harder wrote:
>> > I'm encountering a BUG while using a ZRAM Swap device.
>> >
>> > The call trace seems to involve the changes recently added to 3.10.6
>> > by the patch:
>> > zram: use zram->lock to protect zram_free_page() in swap free notify path
>> >
>> > The hardware is a x86 single CPU AMD Athlon XP system with 1GB RAM.
>> >
>> > I'm implementing a 352MB ZRAM swap device, and also have 1GB swap
>> > space on the hard disk.
>>
>> IMHO, it was caused by that swap_entry_free() was invoked with page
>> spin-locked, thus zram_slot_free_notify() should not use rw-lock which
>> may goto sleep.
>>
>> CC folks related.
>
> Thanks for Ccing me, Michael,
>
> Mitch, It's known problem and it should be fixed by [1] in recent linux-next.
>
> [1] a0c516cbfc, zram: don't grab mutex in zram_slot_free_noity
>
> Thanks for the report!
>

Thanks.

If I apply the zram patches from linux-next, the problem seems to be resolved.
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux