Re: [PATCH 3/3] tgt: fix scsi command leak

2007-03-03 Thread Douglas Gilbert
FUJITA Tomonori wrote: > The failure to map user-space pages leads to scsi command leak. It can > happens mostly because of user-space daemon bugs (or OOM). This patch > makes tgt just notify a LLD of the failure with sense when > blk_rq_map_user() fails. > > Signed-off-by: FUJITA Tomonori <[EMAIL

Re: Possible bug in scsi_lib.c:scsi_req_map_sg()

2007-03-03 Thread Mike Christie
Dachepalli, Sudhir wrote: > Where is the depricated warning that you mentioned about ? > I tried to look in scsi_lib.c and scsi_device.h > I meant in the first versions of the patches there was a warning. Did you also try the workarounds mentioned in the bugzilla, to allocate memory like sg and s

RE: Possible bug in scsi_lib.c:scsi_req_map_sg()

2007-03-03 Thread Dachepalli, Sudhir
Mike , Our driver gets called in with the following fashion through the queuecommand. scsi_request_fn() -> scsi_dispatch_cmd() -> rtn = host->hostt->queuecommand(cmd, scsi_done); We are using the "cmd" ( scsi_cmnd) as a pass through with out touching the "request_buffer" and "request_bufflen".