Re: target_alloc is noisy on failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2005-12-18 at 12:29 -0700, Matthew Wilcox wrote:
> However, returning an error from target_alloc is noisy:
> 
>         int error = shost->hostt->target_alloc(starget);
> 
> 	if(error) {
> 		dev_printk(KERN_ERR, dev,
> 			"target allocation failed, error %d\n", error);
> 
> so I don't really want to do this.  Any thoughts on defining some
> 'quiet' return values from target_alloc?

Well, obviously, for consistency it should be the same quiet return as
for slave_alloc (i.e. -ENXIO).

James


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux