]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: Remove se_dev_entry.ua_count
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 22 Jun 2018 21:53:07 +0000 (14:53 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 2 Jul 2018 20:44:32 +0000 (16:44 -0400)
commit05de419806477285bfb243cb0705539ba68743ef
treece514ffd9409a92eceafb7c53b063f622c6a802f
parent282ee1efcd6d70dffefd4dfefaa3712c086380ca
scsi: target: Remove se_dev_entry.ua_count

se_dev_entry.ua_count is only used to check whether or not
se_dev_entry.ua_list is empty. Use list_empty_careful() instead.  Checking
whether or not ua_list is empty without holding the lock that protects that
list is fine because the code that dequeues from that list will check again
whether or not that list is empty.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_device.c
drivers/target/target_core_ua.c
include/target/target_core_base.h