30 Jul, 2019
1 commit
-
No functional change.
[mkp: typo]
Signed-off-by: Hannes Reinecke
Reviewed-by: Christoph Hellwig
Signed-off-by: Martin K. Petersen
05 Jun, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms and conditions of the gnu general public license
version 2 as published by the free software foundation this program
is distributed in the hope it will be useful but without any
warranty without even the implied warranty of merchantability or
fitness for a particular purpose see the gnu general public license
for more details you should have received a copy of the gnu general
public license along with this program if not write to the free
software foundation inc 51 franklin st fifth floor boston ma 02110
1301 usaextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 111 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Alexios Zavras
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190530000436.567572064@linutronix.de
Signed-off-by: Greg Kroah-Hartman
16 Mar, 2017
1 commit
-
refcount_t type and corresponding API should be used instead of atomic_t
when the variable is used as a reference counter. This allows to avoid
accidental refcounter overflows that might lead to use-after-free
situations.Signed-off-by: Elena Reshetova
Signed-off-by: Hans Liljestrand
Signed-off-by: Kees Cook
Signed-off-by: David Windsor
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen
17 Jan, 2017
1 commit
-
The parameter name should be wwpn instead of wwnn.
Signed-off-by: Fam Zheng
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen
18 Nov, 2016
1 commit
-
Change FC drivers to use 'struct bsg_job' from bsg-lib.h instead of
'struct fc_bsg_job' from scsi_transport_fc.h and remove 'struct
fc_bsg_job'.Signed-off-by: Johannes Thumshirn
Reviewed-by: Hannes Reinecke
Acked-by: Tyrel Datwyler
Signed-off-by: Martin K. Petersen
09 Nov, 2016
22 commits
-
The ->seq_release callback only ever had one implementation,
so call the function directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->seq_assign callback only ever had one implementation,
so call the function directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->seq_set_resp callback only ever had one implementation,
so call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->seq_start_next callback only ever had one implementation,
so call the function directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->exch_done callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->seq_exch_abort callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->seq_send callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
Function is empty now and can be removed.
Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Reviewed-by: Chad Dupuis
Signed-off-by: Martin K. Petersen -
The ->rport_flush_queue callback only ever had a single
implementation, so we can as well call it directly and
drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->rport_recv_req callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->rport_logoff callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Reviewed-by: Chad Dupuis
Signed-off-by: Martin K. Petersen -
The ->rport_login callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->rport_create callback only ever had a single implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->rport_lookup callback only ever had a single implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->rport_destroy callback only ever had one implementation,
so we can as well call it directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->exch_seq_send callback only ever had one implementation,
so we can call the function directly and drop the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->lport_recv callback only ever had one implementation,
so call the function directly and remove the callback.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The ->lport_reset callback only ever had one implementation,
which already is exported. So remove it and use the function
directly.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
The 'seq_els_rsp_send' callback only ever had one implementation,
so we might as well drop it and use the function directly.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
When we're receiving a timeout we should be checking for queue
full status; if there are still some packets pending we should
be resetting the counter to ensure we're not missing out any
packets which are still queued.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen -
When a sequence times out we have no idea what happened to the
frame. And we do not know if we will ever receive the frame.
Hence we cannot re-use the xid as we would risk data corruption
if the xid had been re-used and the timed out frame would be
received after that.
So we need to quarantine the xid until the lport is reset.
Yes, I know this will (eventually) deplete the xid pool.
But for now it's the safest method.Signed-off-by: Hannes Reinecke
Reviewed-by: Bart Van Assche
Signed-off-by: Martin K. Petersen -
We only ever use the 'fp' argument for fc_rport_error() to
encapsulate the error code, so we can as well do away with that
and pass the error directly.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen
21 Jul, 2016
1 commit
-
When running in VN2VN mode there is no central instance which would send
out any FIP VLAN discovery notifications. So this patch adds a new sysfs
attribute 'fip_vlan_responder' which will activate a FIP VLAN discovery
responder.Signed-off-by: Hannes Reinecke
Acked-by: Johannes Thumshirn
Signed-off-by: Martin K. Petersen
24 Nov, 2014
1 commit
-
Drop the now unused reason argument from the ->change_queue_depth method.
Also add a return value to scsi_adjust_queue_depth, and rename it to
scsi_change_queue_depth now that it can be used as the default
->change_queue_depth implementation.Signed-off-by: Christoph Hellwig
Reviewed-by: Mike Christie
Reviewed-by: Hannes Reinecke
12 Nov, 2014
1 commit
-
Most drivers use exactly the same implementation, so provide it as a
library function.Signed-off-by: Christoph Hellwig
Reviewed-by: Bart Van Assche
Reviewed-by: Mike Christie
Reviewed-by: Martin K. Petersen
Reviewed-by: Hannes Reinecke
05 Sep, 2013
1 commit
-
While the FCoE initiator driver invokes fc_exch_done() from inside
the libfc response handler, FCoE target drivers typically invoke
fc_exch_done() from outside the libfc response handler. The object
fc_exch.arg points at may disappear as soon as fc_exch_done() has
finished. So it's important not to invoke the response handler
function after fc_exch_done() has finished. Modify libfc such that
this guarantee is provided if fc_exch_done() is invoked from
outside a response handler. This patch fixes a sporadic crash in
FCoE target implementations after a command has been aborted.Signed-off-by: Bart Van Assche
Cc: Neil Horman
Signed-off-by: Robert Love
26 Mar, 2013
2 commits
-
Split discovery initialization in code that is setup once (fcoe_disc_init)
and code that can be re-configured (fcoe_disc_config).Signed-off-by: Robert Love
Tested-by: Jack Morgan
Reviewed-by: Bhanu Prakash Gollapudi -
Currently libfcoe is doing some libfc discovery layer initialization outside of
libfc. This patch moves this code into libfc and sets up a split in discovery
(one time) initialization code and (re-configurable) settings that will come in
the next patch.Signed-off-by: Robert Love
Tested-by: Jack Morgan
Reviewed-by: Bhanu Prakash Gollapudi
20 Jul, 2012
3 commits
-
Updates newly added stats from fc_get_host_stats,
added new function fc_exch_update_stats to
update exches related stats from fc_exch.c
by going thru internal ema_list elements.Signed-off-by: Vasu Dev
Acked-by : Robert Love
Tested-by: Ross Brattain
Signed-off-by: James Bottomley -
Adds stats to track FCP pkt and frame alloc
failure.Signed-off-by: Vasu Dev
Acked-by : Robert Love
Tested-by: Ross Brattain
Signed-off-by: James Bottomley -
The libfc is used by fcoe but fcoe agnostic,
and therefore should not have any fcoe references.So renaming fcoe_dev_stats from libfc as its for fc_stats.
After that libfc is fcoe string free except some strings for
Open-FCoE.org.Signed-off-by: Vasu Dev
Acked-by : Robert Love
Tested-by: Ross Brattain
Acked-by: Bhanu Prakash Gollapudi
Signed-off-by: James Bottomley
19 Feb, 2012
1 commit
-
This patch adds support for Fabric Device Management
Interface as per FC-GS-4 spec. in libfc. Any driver
making use of libfc can enable fdmi state machine
for a given lport.If lport has enabled FDMI support the lport state
machine will transition into FDMI after completing
the DNS states and before entering the SCR state.
The FDMI state transition is such that if there is an
error, it won't stop the lport state machine from
transitioning and the it will behave as if there was
no FDMI support.The FDMI HBA attributes are registed with the Management
server via Register HBA (RHBA) command and the port
attributes are reigstered using the Register Port(RPA)
command.Signed-off-by: Neerav Parikh
Tested-by: Ross Brattain
Acked-by: Robert Love
Signed-off-by: James Bottomley
16 Jan, 2012
1 commit
-
Avoid that sparse complains about missing declarations for local
functions by declaring these static or by adding an #include directive.
Add the __percpu annotation where it is missing.Signed-off-by: Bart Van Assche
Reviewed-by: Yi Zou
Signed-off-by: Robert Love
Signed-off-by: James Bottomley
03 Oct, 2011
2 commits
-
cache aligned xid and ex_lock beside
removing holes.Signed-off-by: Vasu Dev
Tested-by: Ross Brattain
Signed-off-by: Yi Zou
Signed-off-by: James Bottomley -
Re-arrange its fields to avoid padding and have better
cacheline alignments.Removed not used start_time, end_time and last_pkt_time
fields.This all reduced this struct size to 448 from 480 and
that also reduced one cacheline on x86_64 beside
eliminating 8 pads. However kept logical fields together.Signed-off-by: Vasu Dev
Tested-by: Ross Brattain
Signed-off-by: Yi Zou
Signed-off-by: James Bottomley