Re: [PATCH 1/3] qla2xxx: Add qla_tgt_sess->sess_kref for session get/put

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

 



On Fri, Nov 18, 2011 at 08:29:34PM +0000, Nicholas A. Bellinger wrote:
> From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>
> 
> This patch adds proper qla_tgt_sess->sess_kref operation for
> qla_tgt_sess reference and two flavours of qla_tgt_unreg_sess()
> in order to have a qla_hw_data->hardware_lock lock-less method
> to execute qla_tgt_cmd in qla_tgt_do_work() process context.
> 
> It also convert existing ->hardware_lock held qla_tgt_sess_put()
> callers to use __qla_tgt_sess_put()

Is there any good reason why we would ever actually want the hardware
lock held over call to __qla_tgt_sess_put?  From a quick review most
places either acquire it just before or drop it just after later.

Cleaning that part up will make locking in the driver a lot simpler.

Nevermind that the whole session linkage should really move to a
different lock ASAP anyway.
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux