On Thu, Jul 21, 2022 at 07:16:28AM +0200, Christoph Hellwig wrote: > fops->open and fops->release are always paired. Use simple atomic bit > ops ot indicate if the device is opened instead of a count that can > only be 0 and 1 and a useless cmpxchg loop in ublk_ch_release. > > Also don't bother clearing file->private_data is the file is about to > be freed anyway. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx> -- Ming