Re: [Patch-for-4.4] xen/blkback: don't use xen_blkif_get() in xen-blkback kthread

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

 



On Wed, Aug 02, 2017 at 11:27:45AM +0200, Juergen Gross wrote:
> There is no need to use xen_blkif_get()/xen_blkif_put() in the kthread
> of xen-blkback. Thread stopping is synchronous and using the blkif
> reference counting in the kthread will avoid to ever let the reference
> count drop to zero at the end of an I/O running concurrent to
> disconnecting.
> 
> Setting ring->xenblkd to NULL after stopping the kthread isn't needed
> as the kthread does this already.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> Tested-by: Steven Haigh <netwiz@xxxxxxxxx>
> Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
> ---
> This is a backport of commit a24fa22ce22ae302b3bf8f7008896d52d5d57b8d
> for linux-4.4.y branch.

Both patches now applied, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]