aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-06-25 09:27:36 -0400
committerChristoph Hellwig <hch@lst.de>2014-07-17 16:07:37 -0400
commit9cb78c16f5dadefd8dc5ba0ae5a2f26cd59419b3 (patch)
tree576b86c3ec56dd7176285ec2d27f27ca55f77bc3 /drivers/scsi/libiscsi.c
parent755f516bbb983915d6cbfb5aa592cc0a5a99fd00 (diff)
scsi: use 64-bit LUNs
The SCSI standard defines 64-bit values for LUNs, and large arrays employing large or hierarchical LUN numbers become more and more common. So update the linux SCSI stack to use 64-bit LUN numbers. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@infradead.org> Reviewed-by: Ewan Milne <emilne@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 3d1bc67bac9d..f2db82beb646 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -260,7 +260,7 @@ static int iscsi_check_tmf_restrictions(struct iscsi_task *task, int opcode)
260{ 260{
261 struct iscsi_conn *conn = task->conn; 261 struct iscsi_conn *conn = task->conn;
262 struct iscsi_tm *tmf = &conn->tmhdr; 262 struct iscsi_tm *tmf = &conn->tmhdr;
263 unsigned int hdr_lun; 263 u64 hdr_lun;
264 264
265 if (conn->tmf_state == TMF_INITIAL) 265 if (conn->tmf_state == TMF_INITIAL)
266 return 0; 266 return 0;
@@ -1859,8 +1859,7 @@ static int iscsi_exec_task_mgmt_fn(struct iscsi_conn *conn,
1859 * Fail commands. session lock held and recv side suspended and xmit 1859 * Fail commands. session lock held and recv side suspended and xmit
1860 * thread flushed 1860 * thread flushed
1861 */ 1861 */
1862static void fail_scsi_tasks(struct iscsi_conn *conn, unsigned lun, 1862static void fail_scsi_tasks(struct iscsi_conn *conn, u64 lun, int error)
1863 int error)
1864{ 1863{
1865 struct iscsi_task *task; 1864 struct iscsi_task *task;
1866 int i; 1865 int i;
@@ -2279,7 +2278,8 @@ int iscsi_eh_device_reset(struct scsi_cmnd *sc)
2279 cls_session = starget_to_session(scsi_target(sc->device)); 2278 cls_session = starget_to_session(scsi_target(sc->device));
2280 session = cls_session->dd_data; 2279 session = cls_session->dd_data;
2281 2280
2282 ISCSI_DBG_EH(session, "LU Reset [sc %p lun %u]\n", sc, sc->device->lun); 2281 ISCSI_DBG_EH(session, "LU Reset [sc %p lun %llu]\n", sc,
2282 sc->device->lun);
2283 2283
2284 mutex_lock(&session->eh_mutex); 2284 mutex_lock(&session->eh_mutex);
2285 spin_lock_bh(&session->frwd_lock); 2285 spin_lock_bh(&session->frwd_lock);