public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* memory allocation in sg_io()
@ 2008-01-10 12:33 Oliver Neukum
  2008-01-10 13:05 ` Boaz Harrosh
  0 siblings, 1 reply; 7+ messages in thread
From: Oliver Neukum @ 2008-01-10 12:33 UTC (permalink / raw)
  To: axboe, SCSI development list

Hi,

could you explain to me why this code can get away with allocating the
sense buffer on the stack?

static int sg_io(struct file *file, struct request_queue *q,
		struct gendisk *bd_disk, struct sg_io_hdr *hdr)
{
	unsigned long start_time;
	int writing = 0, ret = 0, has_write_perm = 0;
	struct request *rq;
	char sense[SCSI_SENSE_BUFFERSIZE];

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-10 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 12:33 memory allocation in sg_io() Oliver Neukum
2008-01-10 13:05 ` Boaz Harrosh
2008-01-10 13:06   ` Jens Axboe
2008-01-10 13:14     ` Boaz Harrosh
2008-01-10 13:19   ` Oliver Neukum
2008-01-10 13:24     ` Jens Axboe
2008-01-10 13:30     ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox