fc_fcp.c (c8b09f6fb67df7fc1b51ced1037fa9b677428149) | fc_fcp.c (c40ecc12cfdb630332198a04e2832ae8218a61f1) |
---|---|
1/* 2 * Copyright(c) 2007 Intel Corporation. All rights reserved. 3 * Copyright(c) 2008 Red Hat, Inc. All rights reserved. 4 * Copyright(c) 2008 Mike Christie 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 2159 unchanged lines hidden (view full) --- 2168/** 2169 * fc_change_queue_depth() - Change a device's queue depth 2170 * @sdev: The SCSI device whose queue depth is to change 2171 * @qdepth: The new queue depth 2172 * @reason: The resason for the change 2173 */ 2174int fc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) 2175{ | 1/* 2 * Copyright(c) 2007 Intel Corporation. All rights reserved. 3 * Copyright(c) 2008 Red Hat, Inc. All rights reserved. 4 * Copyright(c) 2008 Mike Christie 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. --- 2159 unchanged lines hidden (view full) --- 2168/** 2169 * fc_change_queue_depth() - Change a device's queue depth 2170 * @sdev: The SCSI device whose queue depth is to change 2171 * @qdepth: The new queue depth 2172 * @reason: The resason for the change 2173 */ 2174int fc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) 2175{ |
2176 switch (reason) { 2177 case SCSI_QDEPTH_DEFAULT: 2178 scsi_adjust_queue_depth(sdev, qdepth); 2179 break; 2180 case SCSI_QDEPTH_QFULL: 2181 scsi_track_queue_full(sdev, qdepth); 2182 break; 2183 case SCSI_QDEPTH_RAMP_UP: 2184 scsi_adjust_queue_depth(sdev, qdepth); 2185 break; 2186 default: 2187 return -EOPNOTSUPP; 2188 } | 2176 scsi_adjust_queue_depth(sdev, qdepth); |
2189 return sdev->queue_depth; 2190} 2191EXPORT_SYMBOL(fc_change_queue_depth); 2192 2193/** 2194 * fc_fcp_destory() - Tear down the FCP layer for a given local port 2195 * @lport: The local port that no longer needs the FCP layer 2196 */ --- 74 unchanged lines hidden --- | 2177 return sdev->queue_depth; 2178} 2179EXPORT_SYMBOL(fc_change_queue_depth); 2180 2181/** 2182 * fc_fcp_destory() - Tear down the FCP layer for a given local port 2183 * @lport: The local port that no longer needs the FCP layer 2184 */ --- 74 unchanged lines hidden --- |