diff options
author | Christoph Hellwig <[email protected]> | 2022-07-21 15:09:12 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-07-21 10:52:12 -0600 |
commit | fa362045564ea7641e7d48295b54f4eb4df689ea (patch) | |
tree | 02bf9349465e65b2a0d3820770782957155173b6 /net/lapb/lapb_subr.c | |
parent | 49d686cceed2e3148ba2bd2dec7e09b86eba0337 (diff) |
ublk: simplify ublk_ch_open and ublk_ch_release
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 <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions