https://github.com/torvalds/linux
Revision 6c5121b78ba5c70a9990e2af6cb4d6bbffe0d4d8 authored by Kiyoshi Ueda on 04 October 2008, 18:11:35 UTC, committed by James Bottomley on 23 October 2008, 16:42:16 UTC
This patch implements q->lld_busy_fn() for scsi mid layer to export
its busy state for request stacking drivers.

For efficiency, no lock is taken to check the busy state of
shost/starget/sdev, since the returned value is not guaranteed and
may be changed after request stacking drivers call the function,
regardless of taking lock or not.

When scsi can't dispatch I/Os anymore and needs to kill I/Os
(e.g. !sdev), scsi needs to return 'not busy'.
Otherwise, request stacking drivers may hold requests forever.

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent 9d11251
History
Tip revision: 6c5121b78ba5c70a9990e2af6cb4d6bbffe0d4d8 authored by Kiyoshi Ueda on 04 October 2008, 18:11:35 UTC
[SCSI] export busy state via q->lld_busy_fn()
Tip revision: 6c5121b
File Mode Size
Makefile -rw-r--r-- 335 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 6.9 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mqueue.c -rw-r--r-- 30.0 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 2.5 KB
sem.c -rw-r--r-- 33.8 KB
shm.c -rw-r--r-- 25.1 KB
util.c -rw-r--r-- 23.0 KB
util.h -rw-r--r-- 4.5 KB

back to top