Re: [PATCH] block: genhd: don't call blkdev_show() with major_names_lock held

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

 



On 9/7/21 5:52 AM, Tetsuo Handa wrote:
> The simplest fix is to call probe function without holding
> major_names_lock [1], but Christoph Hellwig does not like such idea.
> Therefore, instead of holding major_names_lock in blkdev_show(),
> introduce a different lock for blkdev_show() in order to break
> "sb_writers#$N => &p->lock => major_names_lock" dependency chain.

Agree, that's probably the easiest fix here. Applied, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux